fix [#32433] Grease Pencil Layer color & Color Management
authorCampbell Barton <ideasman42@gmail.com>
Wed, 29 Aug 2012 23:02:16 +0000 (23:02 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 29 Aug 2012 23:02:16 +0000 (23:02 +0000)
source/blender/makesrna/intern/rna_gpencil.c

index e246c6975b55f488b0658f7094d7c577d1fd960a..eb12a02aa99d994c53757089cfb0fe0fcc07d446 100644 (file)
@@ -203,7 +203,7 @@ static void rna_def_gpencil_layer(BlenderRNA *brna)
        RNA_def_property_editable_func(prop, "rna_GPencilLayer_active_frame_editable");
        
        /* Drawing Color */
-       prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
+       prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR_GAMMA);
        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");