diff options
author | Matt Ebb <matt@mke3.net> | 2010-03-12 05:43:36 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-03-12 05:43:36 +0300 |
commit | 63c71425b7faee81995a758b54e60320cd4e3ddf (patch) | |
tree | b549d60a52e5523dda1646436efb0fa36668001e /source/blender/editors/space_image/image_ops.c | |
parent | 478e90ffdcd3f00c9346f430583c5d99ffb61337 (diff) |
Fixed [#21558] ctrl+c a material color and ctr+v it into new texture color results in darker color
Diffstat (limited to 'source/blender/editors/space_image/image_ops.c')
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index ed75b6dcef0..488cb7885b3 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -1182,6 +1182,9 @@ static int new_exec(bContext *C, wmOperator *op) 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); |