[Bf-blender-cvs] [d882ec322ab] modifier-panels-ui: Constraints UI: Add separator after the X to match modifiers

William Reynish noreply at git.blender.org
Tue Apr 21 20:50:23 CEST 2020


Commit: d882ec322abd659aad61fadbfed0b704f5df02f8
Author: William Reynish
Date:   Tue Apr 21 20:50:21 2020 +0200
Branches: modifier-panels-ui
https://developer.blender.org/rBd882ec322abd659aad61fadbfed0b704f5df02f8

Constraints UI: Add separator after the X to match modifiers

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

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

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

diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index 958399579d3..732e28a0be8 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -2654,6 +2654,9 @@ static void draw_constraint_header(uiLayout *layout, Object *ob, bConstraint *co
     UI_block_emboss_set(block, UI_EMBOSS_NONE);
     uiItemO(layout, "", ICON_X, "CONSTRAINT_OT_delete");
     UI_block_emboss_set(block, UI_EMBOSS);
+
+    /* Some extra padding at the end, so 'x' icon isn't too close to drag button. */
+    uiItemS(layout);
   }
 
   /* Set but-locks for protected settings (magic numbers are used here!) */



More information about the Bf-blender-cvs mailing list