Temporary work around for [#20768] Project Snap Broken

Don't snap to editmesh when project is on (that means you can't retopo to the same mesh). Again, that's a temporary work around.
This commit is contained in:
2010-01-31 17:50:42 +00:00
parent 8d513efdb0
commit 5cdec97dc5

View File

@@ -379,7 +379,7 @@ void initSnappingMode(TransInfo *t)
if (t->tsnap.applySnap != NULL && // A snapping function actually exist
(obedit != NULL && ELEM3(obedit->type, OB_MESH, OB_ARMATURE, OB_CURVE)) ) // Temporary limited to edit mode meshes, armature, curves
{
if (t->flag & T_PROP_EDIT)
if ((t->flag & T_PROP_EDIT) || t->tsnap.project) /* also exclude edit for project, for now */
{
t->tsnap.modeSelect = SNAP_NOT_OBEDIT;
}