Fix T63040: Resizing node has offset
This broke in rB6500b31728d870506207d9d70837b171cbef32ea. Reviewers: brecht Differential Revision: https://developer.blender.org/D4607
This commit is contained in:
parent
deb3b8301a
commit
fe9c9a313f
Notes:
blender-bot
2023-02-14 03:12:12 +01:00
Referenced by issue #63040, Resizing Nodes has offset when using hiDPI display
|
@ -848,8 +848,8 @@ static void node_resize_init(bContext *C, wmOperator *op, const wmEvent *UNUSED(
|
|||
NodeSizeWidget *nsw = MEM_callocN(sizeof(NodeSizeWidget), "size widget op data");
|
||||
|
||||
op->customdata = nsw;
|
||||
nsw->mxstart = snode->cursor[0];
|
||||
nsw->mystart = snode->cursor[1];
|
||||
nsw->mxstart = snode->cursor[0] * UI_DPI_FAC;
|
||||
nsw->mystart = snode->cursor[1] * UI_DPI_FAC;
|
||||
|
||||
/* store old */
|
||||
nsw->oldlocx = node->locx;
|
||||
|
|
Loading…
Reference in New Issue