[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27429] trunk/blender/source/blender/ editors/space_image/image_ops.c: Fixed [#21558] ctrl+c a material color and ctr+v it into new texture color results in darker color
Matt Ebb
matt at mke3.net
Fri Mar 12 03:43:38 CET 2010
Revision: 27429
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27429
Author: broken
Date: 2010-03-12 03:43:36 +0100 (Fri, 12 Mar 2010)
Log Message:
-----------
Fixed [#21558] ctrl+c a material color and ctr+v it into new texture color results in darker color
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_image/image_ops.c
Modified: trunk/blender/source/blender/editors/space_image/image_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_ops.c 2010-03-12 00:32:21 UTC (rev 27428)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c 2010-03-12 02:43:36 UTC (rev 27429)
@@ -1182,6 +1182,9 @@
uvtestgrid= RNA_boolean_get(op->ptr, "uv_test_grid");
RNA_float_get_array(op->ptr, "color", color);
color[3]= RNA_float_get(op->ptr, "alpha");
+
+ if (!floatbuf && scene->r.color_mgt_flag & R_COLOR_MANAGEMENT)
+ linearrgb_to_srgb_v3_v3(color, color);
ima = BKE_add_image_size(width, height, name, floatbuf, uvtestgrid, color);
More information about the Bf-blender-cvs
mailing list