Fix #32405: snapping in UV editor does not work if snapping in 3D view is set

to "snap to face" with "project individual ..." enabled.
This commit is contained in:
2012-08-30 17:41:59 +00:00
parent c4622c405e
commit f9bccc069c

View File

@@ -410,9 +410,8 @@ static void initSnappingMode(TransInfo *t)
}
else {
/* force project off when not supported */
if (ts->snap_mode != SCE_SNAP_MODE_FACE) {
if (t->spacetype == SPACE_IMAGE || ts->snap_mode != SCE_SNAP_MODE_FACE)
t->tsnap.project = 0;
}
t->tsnap.mode = ts->snap_mode;
}