Workaround T40241: Vertex snapping snaps to wrong place

This commit is contained in:
Campbell Barton 2014-05-19 19:25:59 +10:00
parent f8278e5479
commit 3a3b990b2d
Notes: blender-bot 2023-06-07 10:31:13 +02:00
Referenced by issue #40241, Vertex snapping snaps to wrong place while snaps active
1 changed files with 8 additions and 0 deletions

View File

@ -391,6 +391,14 @@ static int transform_modal(bContext *C, wmOperator *op, const wmEvent *event)
exit_code = transformEvent(t, event);
t->context = NULL;
/* XXX, workaround: active needs to be calculated before transforming,
* since we're not reading from 'td->center' in this case. see: T40241 */
if (t->tsnap.target == SCE_SNAP_TARGET_ACTIVE) {
if ((t->tsnap.status & TARGET_INIT) == 0) {
t->tsnap.targetSnap(t);
}
}
transformApply(C, t);
exit_code |= transformEnd(C, t);