Fix #106043: Don't use offset for free nodes #106050

Closed
Iliya Katushenock wants to merge 2 commits from mod_moder:fix_frame_node_jittering into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 4 additions and 4 deletions

View File

@ -51,8 +51,8 @@ static void create_transform_data_for_node(TransData &td,
nodeToView(node.parent, node.locx + node.offsetx, node.locy + node.offsety, &locx, &locy); nodeToView(node.parent, node.locx + node.offsetx, node.locy + node.offsety, &locx, &locy);
} }
else { else {
locx = node.locx + node.offsetx; locx = node.locx;
locy = node.locy + node.offsety; locy = node.locy;
} }
/* use top-left corner as the transform origin for nodes */ /* use top-left corner as the transform origin for nodes */
@ -251,8 +251,8 @@ static void flushTransNodes(TransInfo *t)
&node->locy); &node->locy);
} }
else { else {
node->locx = loc[0] - node->offsetx; node->locx = loc[0];
node->locy = loc[1] - node->offsety; node->locy = loc[1];
} }
} }