forked from bartvdbraak/blender
Grease Pencil UI
The recent addition of the up/down arrows wasn't aligned. Before/After: http://www.pasteall.org/pic/show.php?id=47512 Patch by Francesco Siddi.
This commit is contained in:
parent
03762409cd
commit
779b26058b
@ -198,6 +198,8 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons
|
||||
uiItemR(sub, &ptr, "info", 0, "", ICON_NONE);
|
||||
|
||||
/* move up/down */
|
||||
uiBlockBeginAlign(block);
|
||||
|
||||
if (gpl->prev) {
|
||||
but = uiDefIconBut(block, BUT, 0, ICON_TRIA_UP, 0, 0, UI_UNIT_X, UI_UNIT_Y,
|
||||
NULL, 0.0, 0.0, 0.0, 0.0, TIP_("Move layer up"));
|
||||
@ -209,6 +211,8 @@ static void gp_drawui_layer(uiLayout *layout, bGPdata *gpd, bGPDlayer *gpl, cons
|
||||
uiButSetFunc(but, gp_ui_layer_down_cb, gpd, gpl);
|
||||
}
|
||||
|
||||
uiBlockEndAlign(block);
|
||||
|
||||
/* delete 'button' */
|
||||
uiBlockSetEmboss(block, UI_EMBOSSN);
|
||||
/* right-align ............................... */
|
||||
|
Loading…
Reference in New Issue
Block a user