diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-30 04:44:37 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-30 07:28:41 +0300 |
commit | a687d98e67823932f95bc3c1b1452109282a3e41 (patch) | |
tree | 77d23fffc955c4ee8c2f68c28a38674dc810e1ae /source/blender/editors/object/object_edit.c | |
parent | 8f8c23865922a77458f548752ffccb048b96ea5b (diff) |
Remove from Local View operator
This was the old, obscure, little known, M shortcut operator when in local view
back in the 2.7x days.
Diffstat (limited to 'source/blender/editors/object/object_edit.c')
-rw-r--r-- | source/blender/editors/object/object_edit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_edit.c b/source/blender/editors/object/object_edit.c index 5852fcff7e9..2723198b279 100644 --- a/source/blender/editors/object/object_edit.c +++ b/source/blender/editors/object/object_edit.c @@ -1834,6 +1834,12 @@ static bool move_to_collection_poll(bContext *C) return ED_outliner_collections_editor_poll(C); } else { + View3D *v3d = CTX_wm_view3d(C); + + if (v3d && v3d->localvd) { + return false; + } + return ED_operator_object_active_editable(C); } } |