diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2021-05-10 08:44:11 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2021-05-10 08:44:11 +0300 |
commit | 86194403316fe9fe7f5c857f9c10a20bb7b5a7d5 (patch) | |
tree | fa5ffd4f7bdd1416d537bc35120bb39996c745f3 /object_collection_manager/ui.py | |
parent | 8ea89b89c7d1f05798e5c6660456e80fd45e7362 (diff) |
Collection Manager: Fix phantom mode issue. Task: T69577
Fixes the add collection operators, undo operators, and specials menu
in the CM popup not being disabled when in phantom mode.
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r-- | object_collection_manager/ui.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index 09899581..045d4dda 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -143,8 +143,13 @@ class CollectionManager(Operator): right_sec = button_row_1.row() right_sec.alignment = 'RIGHT' - right_sec.menu("VIEW3D_MT_CM_specials_menu") - right_sec.popover(panel="COLLECTIONMANAGER_PT_display_options", + specials_menu = right_sec.row() + specials_menu.alignment = 'RIGHT' + specials_menu.menu("VIEW3D_MT_CM_specials_menu") + + display_options = right_sec.row() + display_options.alignment = 'RIGHT' + display_options.popover(panel="COLLECTIONMANAGER_PT_display_options", text="", icon='FILTER') mc_box = layout.box() @@ -449,12 +454,16 @@ class CollectionManager(Operator): if cm.in_phantom_mode: view.enabled = False + if prefs.enable_qcd: renum_sec.enabled = False + undo_sec.enabled = False + specials_menu.enabled = False + c_icon.enabled = False row_setcol.enabled = False - addcollec_row.enabled = False + button_row_2.enabled = False def execute(self, context): |