diff options
author | Ryan Inch <mythologylover75@gmail.com> | 2020-04-25 11:27:54 +0300 |
---|---|---|
committer | Ryan Inch <mythologylover75@gmail.com> | 2020-04-25 11:27:54 +0300 |
commit | 1e1f8b636dfa37acd266c768fd7ae456440d64c7 (patch) | |
tree | d1030cf36001ba31a3b65a2c0718942d77a6fe05 | |
parent | 0618a7636e543a507102bf4b425ab6f41d2c40bc (diff) |
Collection Manager: Fix popup sizing. Task: T69577
Adjust popup sizing to account for the width of the QCD field
when present.
-rw-r--r-- | object_collection_manager/__init__.py | 2 | ||||
-rw-r--r-- | object_collection_manager/ui.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/object_collection_manager/__init__.py b/object_collection_manager/__init__.py index f5ff542e..91063cc0 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, 15), + "version": (2, 7, 16), "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 46d27e77..9fe483a7 100644 --- a/object_collection_manager/ui.py +++ b/object_collection_manager/ui.py @@ -380,11 +380,15 @@ class CollectionManager(Operator): min_width = 456 row_indent_width = 15 width_step = 21 + qcd_width = 30 scrollbar_width = 21 lvl = get_max_lvl() width = min_width + row_indent_width + (width_step * lvl) + if bpy.context.preferences.addons[__package__].preferences.enable_qcd: + width += qcd_width + if len(layer_collections) > 14: width += scrollbar_width |