style cleanup: use TRUE/FALSE for ui align args.
This commit is contained in:
@@ -100,7 +100,7 @@ static void active_node_panel(const bContext *C, Panel *pa)
|
||||
//else
|
||||
RNA_pointer_create(&ntree->id, &RNA_Node, node, &ptr);
|
||||
|
||||
layout = uiLayoutColumn(pa->layout, 0);
|
||||
layout = uiLayoutColumn(pa->layout, FALSE);
|
||||
uiLayoutSetContextPointer(layout, "node", &ptr);
|
||||
|
||||
/* draw this node's name, etc. */
|
||||
@@ -113,17 +113,17 @@ static void active_node_panel(const bContext *C, Panel *pa)
|
||||
uiItemS(layout);
|
||||
uiItemS(layout);
|
||||
|
||||
row = uiLayoutRow(layout, 0);
|
||||
row = uiLayoutRow(layout, FALSE);
|
||||
|
||||
col = uiLayoutColumn(row, 1);
|
||||
col = uiLayoutColumn(row, TRUE);
|
||||
uiItemM(col, (bContext *)C, "NODE_MT_node_color_presets", NULL, 0);
|
||||
uiItemR(col, &ptr, "use_custom_color", UI_ITEM_R_ICON_ONLY, NULL, ICON_NONE);
|
||||
sub = uiLayoutRow(col, 0);
|
||||
sub = uiLayoutRow(col, FALSE);
|
||||
if (!(node->flag & NODE_CUSTOM_COLOR))
|
||||
uiLayoutSetEnabled(sub, 0);
|
||||
uiItemR(sub, &ptr, "color", 0, "", 0);
|
||||
|
||||
col = uiLayoutColumn(row, 1);
|
||||
col = uiLayoutColumn(row, TRUE);
|
||||
uiItemO(col, "", ICON_ZOOMIN, "node.node_color_preset_add");
|
||||
opptr = uiItemFullO(col, "node.node_color_preset_add", "", ICON_ZOOMOUT, NULL, WM_OP_INVOKE_DEFAULT, UI_ITEM_O_RETURN_PROPS);
|
||||
RNA_boolean_set(&opptr, "remove_active", 1);
|
||||
@@ -164,7 +164,7 @@ static void node_sockets_panel(const bContext *C, Panel *pa)
|
||||
for (sock=node->inputs.first; sock; sock=sock->next) {
|
||||
BLI_snprintf(name, sizeof(name), "%s:", sock->name);
|
||||
|
||||
split = uiLayoutSplit(layout, 0.35f, 0);
|
||||
split = uiLayoutSplit(layout, 0.35f, FALSE);
|
||||
uiItemL(split, name, ICON_NONE);
|
||||
uiTemplateNodeLink(split, ntree, node, sock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user