forked from bartvdbraak/blender
Fix #31897: Ctrl+Click in 'Hue Correct' Node Adds in Wrong Location
Misusage of X/Y coords, ancient one!
This commit is contained in:
parent
f39a21c36f
commit
2b8fdedaf3
@ -3725,7 +3725,7 @@ static int ui_do_but_CURVE(bContext *C, uiBlock *block, uiBut *but, uiHandleButt
|
||||
offsy = cumap->curr.ymin;
|
||||
|
||||
if (event->ctrl) {
|
||||
fx = ((float)my - but->x1) / zoomx + offsx;
|
||||
fx = ((float)mx - but->x1) / zoomx + offsx;
|
||||
fy = ((float)my - but->y1) / zoomy + offsy;
|
||||
|
||||
curvemap_insert(cuma, fx, fy);
|
||||
|
Loading…
Reference in New Issue
Block a user