Revision: 33664
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33664
Author:   campbellbarton
Date:     2010-12-14 17:33:04 +0100 (Tue, 14 Dec 2010)

Log Message:
-----------
clamp colors from 0-1 which are used for display only.

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_fcurve.c
    trunk/blender/source/blender/makesrna/intern/rna_gpencil.c
    trunk/blender/source/blender/makesrna/intern/rna_scene.c
    trunk/blender/source/blender/makesrna/intern/rna_text.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_fcurve.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_fcurve.c   2010-12-14 
16:23:15 UTC (rev 33663)
+++ trunk/blender/source/blender/makesrna/intern/rna_fcurve.c   2010-12-14 
16:33:04 UTC (rev 33664)
@@ -1395,6 +1395,7 @@
        
        prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
        RNA_def_property_array(prop, 3);
+       RNA_def_property_range(prop, 0.0f, 1.0f);
        RNA_def_property_ui_text(prop, "Color", "Color of the F-Curve in the 
Graph Editor");
        RNA_def_property_update(prop, NC_ANIMATION, NULL);      
        

Modified: trunk/blender/source/blender/makesrna/intern/rna_gpencil.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_gpencil.c  2010-12-14 
16:23:15 UTC (rev 33663)
+++ trunk/blender/source/blender/makesrna/intern/rna_gpencil.c  2010-12-14 
16:33:04 UTC (rev 33664)
@@ -169,6 +169,7 @@
        /* Drawing Color */
        prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
        RNA_def_property_array(prop, 3);
+       RNA_def_property_range(prop, 0.0f, 1.0f);
        RNA_def_property_ui_text(prop, "Color", "Color for all strokes in this 
layer");
        RNA_def_property_update(prop, NC_SCREEN|ND_GPENCIL, NULL);
        

Modified: trunk/blender/source/blender/makesrna/intern/rna_scene.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_scene.c    2010-12-14 
16:23:15 UTC (rev 33663)
+++ trunk/blender/source/blender/makesrna/intern/rna_scene.c    2010-12-14 
16:33:04 UTC (rev 33664)
@@ -1655,6 +1655,7 @@
 
        prop= RNA_def_property(srna, "frame_color", PROP_FLOAT, PROP_COLOR);
        RNA_def_property_float_sdna(prop, NULL, "framing.col");
+       RNA_def_property_range(prop, 0.0f, 1.0f);
        RNA_def_property_array(prop, 3);
        RNA_def_property_ui_text(prop, "Framing Color", "Set color of the 
bars");
        RNA_def_property_update(prop, NC_SCENE, NULL);

Modified: trunk/blender/source/blender/makesrna/intern/rna_text.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_text.c     2010-12-14 
16:23:15 UTC (rev 33663)
+++ trunk/blender/source/blender/makesrna/intern/rna_text.c     2010-12-14 
16:33:04 UTC (rev 33664)
@@ -165,6 +165,7 @@
        RNA_def_property_ui_text(prop, "Edit All", "Edit all markers of the 
same group as one");
        
        prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
+       RNA_def_property_range(prop, 0.0f, 1.0f);
        RNA_def_property_ui_text(prop, "Color", "Color to display the marker 
with");
 }
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to