diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2020-04-14 10:39:45 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2020-04-14 10:39:45 +0300 |
commit | 6ce56e487405d27e07aa166a7ef7d936562d201e (patch) | |
tree | 40695bf910be25118aa8a9cd3f45a5970e8271a7 | |
parent | 2c4cb6c16bc5fe0a1ec53e06b6a8568b5d6fecd0 (diff) |
Collection Manager: Fix button positioning. Task: T69577
Fix positioning of the Collapse/Expand and Re-numerate QCD Slots
buttons in the Collection Manager popup.
-rw-r--r-- | object_collection_manager/__init__.py | 2 | ||||
-rw-r--r-- | object_collection_manager/ui.py | 22 |
2 files changed, 13 insertions, 11 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index aa4cc5df..ac818811 100644 --- a/object_collection_manager/__init__.py +++ b/object_collection_manager/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Collection Manager", "description": "Manage collections and their objects", "author": "Ryan Inch", - "version": (2,7,2), + "version": (2,7,3), "blender": (2, 80, 0), "location": "View3D - Object Mode (Shortcut - M)", "warning": '', # used for warning icon and text in addons panel diff --git a/object_collection_manager/ui.py b/object_collection_manager/ui.py index e20c5c12..1b675165 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -108,29 +108,31 @@ class CollectionManager(Operator): layout.row().separator() layout.row().separator() - button_row = layout.split(factor=0.3) - button_row.alignment = 'LEFT' + button_row = layout.row() - sec1 = button_row.row() - sec1.alignment = 'LEFT' - sec1.enabled = False + op_sec = button_row.row() + op_sec.alignment = 'LEFT' + + collapse_sec = op_sec.row() + collapse_sec.alignment = 'LEFT' + collapse_sec.enabled = False if len(expanded) > 0: text = "Collapse All Items" else: text = "Expand All Items" - sec1.operator("view3d.expand_all_items", text=text) + collapse_sec.operator("view3d.expand_all_items", text=text) for laycol in collection_tree: if laycol["has_children"]: - sec1.enabled = True + collapse_sec.enabled = True break if context.preferences.addons[__package__].preferences.enable_qcd: - renum = button_row.row() - renum.alignment = 'LEFT' - renum.operator("view3d.renumerate_qcd_slots") + renum_sec = op_sec.row() + renum_sec.alignment = 'LEFT' + renum_sec.operator("view3d.renumerate_qcd_slots") filter_sec = button_row.row() filter_sec.alignment = 'RIGHT' |