diff options
Diffstat (limited to 'source')
3 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/editors/include/ED_transform_snap_object_context.h b/source/blender/editors/include/ED_transform_snap_object_context.h index fa53e7a76e4..16ec1221eea 100644 --- a/source/blender/editors/include/ED_transform_snap_object_context.h +++ b/source/blender/editors/include/ED_transform_snap_object_context.h @@ -29,8 +29,9 @@ typedef enum { SNAP_ALL = 0, SNAP_NOT_SELECTED = 1, SNAP_NOT_ACTIVE = 2, - SNAP_ONLY_ACTIVE = 3, - SNAP_SELECTABLE = 4, + SNAP_NOT_EDITED = 3, + SNAP_ONLY_ACTIVE = 4, + SNAP_SELECTABLE = 5, } eSnapSelect; typedef enum { diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index bf898b9053f..5e66b8010e4 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -639,7 +639,7 @@ static short snap_select_type_get(TransInfo *t) if ((obedit_type == OB_MESH) && (t->flag & T_PROP_EDIT)) { /* Exclude editmesh if using proportional edit */ - r_snap_select = SNAP_NOT_ACTIVE; + r_snap_select = SNAP_NOT_EDITED; } else if (!t->tsnap.snap_self) { r_snap_select = SNAP_NOT_ACTIVE; diff --git a/source/blender/editors/transform/transform_snap_object.c b/source/blender/editors/transform/transform_snap_object.c index 87053fe03d1..cb06361a62d 100644 --- a/source/blender/editors/transform/transform_snap_object.c +++ b/source/blender/editors/transform/transform_snap_object.c @@ -459,7 +459,11 @@ static bool snap_object_is_snappable(const SnapObjectContext *sctx, } if (snap_select == SNAP_NOT_ACTIVE) { - return base_act == base; + return base_act != base; + } + + if (snap_select == SNAP_NOT_EDITED) { + return base->object->mode != OB_MODE_EDIT; } if (snap_select == SNAP_NOT_SELECTED) { |