Fix set black/white points didn't operate in the linear space
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user