Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Inch <mythologylover75@gmail.com>2020-07-22 11:05:26 +0300
committerRyan Inch <mythologylover75@gmail.com>2020-07-22 11:05:26 +0300
commitcee175131c6d71a5c7043c8c3e177654d7b7ad86 (patch)
tree8a610564e2a5433311fb3a35759fadef9966c43b /object_collection_manager/ui.py
parent09133c5abdc1236ea61a98e68a0f23ba3503b472 (diff)
Collection Manager: Add Operator. Task: T69577
Add Apply Phantom Mode operator.
Diffstat (limited to 'object_collection_manager/ui.py')
-rw-r--r--object_collection_manager/ui.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py
index fab65c67..c6403fe2 100644
--- a/object_collection_manager/ui.py
+++ b/object_collection_manager/ui.py
@@ -315,10 +315,14 @@ class CollectionManager(Operator):
icon='COLLECTION_NEW')
prop.child = True
- # phantom mode
+
button_row_3 = layout.row()
+
+ # phantom mode
+ phantom_mode = button_row_3.row(align=True)
toggle_text = "Disable " if cm.in_phantom_mode else "Enable "
- button_row_3.operator("view3d.toggle_phantom_mode", text=toggle_text+"Phantom Mode")
+ phantom_mode.operator("view3d.toggle_phantom_mode", text=toggle_text+"Phantom Mode")
+ phantom_mode.operator("view3d.apply_phantom_mode", text="", icon='CHECKMARK')
if cm.in_phantom_mode:
view.enabled = False