Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / transform / transform_snap.c
index 38f1d37acd6847d8855608e19080abc9246b3543..1bb8b76898142a1b04d8cc1acd2ed3ce9633ab78 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