[Bf-blender-cvs] [bae31de] master: Fix set black/white points didn't operate in the linear space

Sergey Sharybin noreply at git.blender.org
Wed Sep 3 07:49:55 CEST 2014


Commit: bae31de4a40aeeb5a239cfcee477728603ceb8af
Author: Sergey Sharybin
Date:   Wed Sep 3 11:49:29 2014 +0600
Branches: master
https://developer.blender.org/rBbae31de4a40aeeb5a239cfcee477728603ceb8af

Fix set black/white points didn't operate in the linear space

===================================================================

M	source/blender/editors/space_image/image_ops.c

===================================================================

diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c
index 335de6e..c87e547 100644
--- a/source/blender/editors/space_image/image_ops.c
+++ b/source/blender/editors/space_image/image_ops.c
@@ -2478,11 +2478,12 @@ static void image_sample_apply(bContext *C, wmOperator *op, const wmEvent *event
 				int point = RNA_enum_get(op->ptr, "point");
 
 				if (point == 1) {
-					curvemapping_set_black_white(curve_mapping, NULL, info->colfp);
+					curvemapping_set_black_white(curve_mapping, NULL, info->linearcol);
 				}
 				else if (point == 0) {
-					curvemapping_set_black_white(curve_mapping, info->colfp, NULL);
+					curvemapping_set_black_white(curve_mapping, info->linearcol, NULL);
 				}
+				WM_event_add_notifier(C, NC_WINDOW, NULL);
 			}
 		}




More information about the Bf-blender-cvs mailing list