From 135cf76d8b82e1c19e4053f966de8271d136241c Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Sun, 28 Jun 2015 11:38:46 -0700 Subject: [PATCH] Fix color pickers to only permit usable values. --- korman/properties/prop_world.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/korman/properties/prop_world.py b/korman/properties/prop_world.py index 6716dc9..0bc91b9 100644 --- a/korman/properties/prop_world.py +++ b/korman/properties/prop_world.py @@ -24,6 +24,8 @@ class PlasmaFni(bpy.types.PropertyGroup): fog_color = FloatVectorProperty(name="Fog Color", description="The default fog color used in your age", default=(0.4, 0.3, 0.1), + min=0.0, + max=1.0, subtype="COLOR") fog_method = EnumProperty(name="Fog Type", items=[ @@ -43,6 +45,8 @@ class PlasmaFni(bpy.types.PropertyGroup): min=0.0) clear_color = FloatVectorProperty(name="Clear Color", description="The default background color rendered in your age", + min=0.0, + max=1.0, subtype="COLOR") yon = IntProperty(name="Draw Distance", description="The distance (in feet) Plasma will draw",