[Bf-blender-cvs] [d1932a8ed60] master: Fix missing animation decorators for pointer buttons

Julian Eisel noreply at git.blender.org
Tue Jun 9 20:44:44 CEST 2020


Commit: d1932a8ed6001c120149ce4dd1be6a0415d66f28
Author: Julian Eisel
Date:   Tue Jun 9 20:35:40 2020 +0200
Branches: master
https://developer.blender.org/rBd1932a8ed6001c120149ce4dd1be6a0415d66f28

Fix missing animation decorators for pointer buttons

Also, remove manually placed decorator for vertex groups in modifiers. This was
only needed because of this bug, and the layout was slightly misaligned.

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

M	source/blender/editors/interface/interface_layout.c
M	source/blender/modifiers/intern/MOD_ui_common.c

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

diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index 884e43b4026..196fdf47bd3 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -1054,7 +1054,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) { /* Flag may have been unset meanwhile. */
     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);
diff --git a/source/blender/modifiers/intern/MOD_ui_common.c b/source/blender/modifiers/intern/MOD_ui_common.c
index 973afe5fef6..cc0d3d8ccee 100644
--- a/source/blender/modifiers/intern/MOD_ui_common.c
+++ b/source/blender/modifiers/intern/MOD_ui_common.c
@@ -172,9 +172,6 @@ void modifier_vgroup_ui(uiLayout *layout,
     uiLayoutSetPropDecorate(sub, false);
     uiItemR(sub, ptr, invert_vgroup_prop, 0, "", ICON_ARROW_LEFTRIGHT);
   }
-  if (uiLayoutGetPropDecorate(layout)) {
-    uiItemL(row, "", ICON_BLANK1);
-  }
 }
 
 /**



More information about the Bf-blender-cvs mailing list