Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / transform / transform_snap.c
index e72db4105a4727934e7603c17771257fadaf5bac..cb981bc4771988108358ae1448053d730643faba 100644 (file)
@@ -519,8 +519,6 @@ static void initSnappingMode(TransInfo *t)
 {
        ToolSettings *ts = t->settings;
        Object *obedit = t->obedit;
-       Scene *scene = t->scene;
-       Base *base_act = scene->basact;
 
        if (t->spacetype == SPACE_NODE) {
                /* force project off when not supported */
@@ -559,12 +557,6 @@ static void initSnappingMode(TransInfo *t)
                                t->tsnap.modeSelect = t->tsnap.snap_self ? SNAP_ALL : SNAP_NOT_OBEDIT;
                        }
                }
-               /* Particles edit mode*/
-               else if (t->tsnap.applySnap != NULL && // A snapping function actually exist
-                        (obedit == NULL && base_act && base_act->object && base_act->object->mode & OB_MODE_PARTICLE_EDIT))
-               {
-                       t->tsnap.modeSelect = SNAP_ALL;
-               }
                /* Object mode */
                else if (t->tsnap.applySnap != NULL && // A snapping function actually exist
                         (obedit == NULL) ) // Object Mode