[Bf-blender-cvs] [1974b5b903c] modifier-panels-ui: Fix misalignment of items added with `uiItemPointerR()`

Julian Eisel noreply at git.blender.org
Thu Apr 9 15:43:08 CEST 2020


Commit: 1974b5b903c27d1c121cb69d06e6eb65c26661b9
Author: Julian Eisel
Date:   Thu Apr 9 15:41:31 2020 +0200
Branches: modifier-panels-ui
https://developer.blender.org/rB1974b5b903c27d1c121cb69d06e6eb65c26661b9

Fix misalignment of items added with `uiItemPointerR()`

The split layout flag is changed in-between.

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

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 9c148d262cb..137ade1eabc 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1053,7 +1053,7 @@ static uiBut *ui_item_with_label(uiLayout *layout,
 
 #ifdef UI_PROP_DECORATE
   /* Only for alignment. */
-  if (layout->item.flag & UI_ITEM_PROP_SEP) {
+  if (use_prop_sep) {
     if ((layout->item.flag & UI_ITEM_PROP_DECORATE) &&
         (layout->item.flag & UI_ITEM_PROP_DECORATE_NO_PAD) == 0) {
       uiItemL(layout_prop_decorate ? layout_prop_decorate : sub, NULL, ICON_BLANK1);



More information about the Bf-blender-cvs mailing list