[Bf-extensions-cvs] [6ce56e48] master: Collection Manager: Fix button positioning. Task: T69577

Ryan Inch noreply at git.blender.org
Tue Apr 14 09:41:45 CEST 2020


Commit: 6ce56e487405d27e07aa166a7ef7d936562d201e
Author: Ryan Inch
Date:   Tue Apr 14 03:39:45 2020 -0400
Branches: master
https://developer.blender.org/rBA6ce56e487405d27e07aa166a7ef7d936562d201e

Collection Manager: Fix button positioning. Task: T69577

Fix positioning of the Collapse/Expand and Re-numerate QCD Slots
buttons in the Collection Manager popup.

===================================================================

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 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'



More information about the Bf-extensions-cvs mailing list