Fix copy-paste of colors to generated color not being correct. '
authorAntony Riakiotakis <kalast@gmail.com>
Tue, 6 Jan 2015 14:48:02 +0000 (15:48 +0100)
committerAntony Riakiotakis <kalast@gmail.com>
Tue, 6 Jan 2015 14:48:18 +0000 (15:48 +0100)
Change generated color property to gamma space to match the add new
image operator.

source/blender/makesrna/intern/rna_image.c

index 397e03a9ee1109c6b58429d77593537e11ad318e..b1935b34251ef58c66fa52ae2b9443a74be2f626 100644 (file)
@@ -675,7 +675,7 @@ static void rna_def_image(BlenderRNA *brna)
        RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_generated_update");
        RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
 
-       prop = RNA_def_property(srna, "generated_color", PROP_FLOAT, PROP_COLOR);
+       prop = RNA_def_property(srna, "generated_color", PROP_FLOAT, PROP_COLOR_GAMMA);
        RNA_def_property_float_sdna(prop, NULL, "gen_color");
        RNA_def_property_array(prop, 4);
        RNA_def_property_ui_text(prop, "Color", "Fill color for the generated image");