[Bf-blender-cvs] [61dafc1afbd] temp-checkbox-layout-tweaks: Fix pointer properties breaking column layouts

Julian Eisel noreply at git.blender.org
Fri Apr 10 17:53:17 CEST 2020


Commit: 61dafc1afbdfc59c255553d105d268c278948c31
Author: Julian Eisel
Date:   Fri Apr 10 17:52:48 2020 +0200
Branches: temp-checkbox-layout-tweaks
https://developer.blender.org/rB61dafc1afbdfc59c255553d105d268c278948c31

Fix pointer properties breaking column layouts

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

M	source/blender/editors/interface/interface_layout.c

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

diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 90b50cf3562..f23db374831 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -3109,7 +3109,9 @@ uiLayout *uiItemL_respect_property_split(uiLayout *layout, const char *text, int
     uiBlock *block = uiLayoutGetBlock(layout);
 
     /* Don't do further splits of the layout. */
-    uiLayoutSetPropSep(layout, false);
+    if (layout->item.type == ITEM_LAYOUT_ROW) {
+      uiLayoutSetPropSep(layout, false);
+    }
 
     uiLayout *layout_row = uiLayoutRow(layout, true);
     uiLayout *layout_split = uiLayoutSplit(layout_row, UI_ITEM_PROP_SEP_DIVIDE, true);



More information about the Bf-blender-cvs mailing list