diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-09-10 17:56:46 +0300 |
---|---|---|
committer | Nathan Craddock <nzcraddock@gmail.com> | 2020-09-10 18:01:37 +0300 |
commit | 095a53bd884b5157b8ac25eb660e6520151d0899 (patch) | |
tree | 5f44c250e25562e283679b6843ce4679eda417ef /release/scripts/startup/bl_ui/space_outliner.py | |
parent | 2110af20f5e636cd4481152e8cbe920dfa1efa8c (diff) |
Cleanup: Remove outliner edit mode context menu entries
The outliner context menu has options to enter and exit edit mode, but
they only show in edit mode, and they don't work. This removes the
broken entries and related code.
Part of T77408
Differential Revision: https://developer.blender.org/D8641
Diffstat (limited to 'release/scripts/startup/bl_ui/space_outliner.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_outliner.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py index e0764bc990c..4497f37cfd2 100644 --- a/release/scripts/startup/bl_ui/space_outliner.py +++ b/release/scripts/startup/bl_ui/space_outliner.py @@ -275,7 +275,6 @@ class OUTLINER_MT_object(Menu): space = context.space_data obj = context.active_object - object_mode = 'OBJECT' if obj is None else obj.mode layout.operator("outliner.id_copy", text="Copy", icon='COPYDOWN') layout.operator("outliner.id_paste", text="Paste", icon='PASTEDOWN') @@ -293,16 +292,6 @@ class OUTLINER_MT_object(Menu): layout.separator() - if object_mode in {'EDIT', 'POSE'}: - name = bpy.types.Object.bl_rna.properties["mode"].enum_items[object_mode].name - layout.operator("outliner.object_operation", - text=iface_("%s Set", i18n_contexts.operator_default) % name).type = 'OBJECT_MODE_ENTER' - layout.operator("outliner.object_operation", - text=iface_("%s Clear", i18n_contexts.operator_default) % name).type = 'OBJECT_MODE_EXIT' - del name - - layout.separator() - if not (space.display_mode == 'VIEW_LAYER' and not space.use_filter_collection): layout.operator("outliner.id_operation", text="Unlink").type = 'UNLINK' layout.separator() |