[Bf-blender-cvs] [c337d7536b3] temp-checkbox-layout-tweaks: Fix expanded enums using columns within split layout
Julian Eisel
noreply at git.blender.org
Fri Apr 17 12:46:30 CEST 2020
Commit: c337d7536b3a854cb17240781c92253d71f124b0
Author: Julian Eisel
Date: Thu Apr 16 21:26:11 2020 +0200
Branches: temp-checkbox-layout-tweaks
https://developer.blender.org/rBc337d7536b3a854cb17240781c92253d71f124b0
Fix expanded enums using columns within split layout
===================================================================
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 c4e492c9b54..fa962b7742d 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -2222,15 +2222,15 @@ void uiItemFullR(uiLayout *layout,
* heading itself. */
ui_layout_heading_label_add(heading_layout, heading_layout, false, false);
}
- else if (inside_prop_sep) {
- /* When placing further items in a split row, add them to a column so they match the column
- * layout of previous items (e.g. transform vector with lock icon for each item). */
- layout = uiLayoutColumn(layout_parent, true);
- layout->space = 0;
- }
/* array property */
if (index == RNA_NO_INDEX && is_array) {
+ if (inside_prop_sep) {
+ /* Within a split row, add array items to a column so they match the column layout of
+ * previous items (e.g. transform vector with lock icon for each item). */
+ layout = uiLayoutColumn(layout, true);
+ }
+
ui_item_array(layout,
block,
name,
More information about the Bf-blender-cvs
mailing list