[Bf-extensions-cvs] [d60d0462] master: Collection Manager: Fix popup sizing. Task: T69577
Ryan Inch
noreply at git.blender.org
Sat Apr 25 10:32:15 CEST 2020
Commit: d60d0462c5b8a7e541c50769ceee439c15f87672
Author: Ryan Inch
Date: Sat Apr 25 04:27:54 2020 -0400
Branches: master
https://developer.blender.org/rBAd60d0462c5b8a7e541c50769ceee439c15f87672
Collection Manager: Fix popup sizing. Task: T69577
Adjust popup sizing to account for the width of the QCD field
when present.
===================================================================
M object_collection_manager/__init__.py
M object_collection_manager/ui.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list