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

This commit is contained in:
Sergey Sharybin
2014-09-03 11:49:29 +06:00
parent 00acf4b816
commit bae31de4a4

View File

@@ -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);
}
}