Commit: 86660aa29468d6902e2da9dda2789eb2f973df48
Author: Pablo Vazquez
Date:   Fri Jun 8 23:56:28 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB86660aa29468d6902e2da9dda2789eb2f973df48

Layout for materials closer to single column

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

M       source/blender/editors/space_node/node_templates.c

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

diff --git a/source/blender/editors/space_node/node_templates.c 
b/source/blender/editors/space_node/node_templates.c
index bc9513a748d..5a2feacf20c 100644
--- a/source/blender/editors/space_node/node_templates.c
+++ b/source/blender/editors/space_node/node_templates.c
@@ -634,7 +634,7 @@ static void ui_node_draw_node(uiLayout *layout, bContext 
*C, bNodeTree *ntree, b
 
        if (node->typeinfo->draw_buttons) {
                if (node->type != NODE_GROUP) {
-                       split = uiLayoutSplit(layout, 0.35f, false);
+                       split = uiLayoutSplit(layout, 0.5f, false);
                        col = uiLayoutColumn(split, false);
                        col = uiLayoutColumn(split, false);
 
@@ -677,10 +677,10 @@ static void ui_node_draw_input(uiLayout *layout, bContext 
*C, bNodeTree *ntree,
                label[i] = ' ';
        }
        label[indent] = '\0';
-       BLI_snprintf(label + indent, UI_MAX_NAME_STR - indent, "%s:", 
IFACE_(input->name));
+       BLI_snprintf(label + indent, UI_MAX_NAME_STR - indent, "%s", 
IFACE_(input->name));
 
        /* split in label and value */
-       split = uiLayoutSplit(layout, 0.35f, false);
+       split = uiLayoutSplit(layout, 0.5f, false);
 
        row = uiLayoutRow(split, true);
 
@@ -702,7 +702,7 @@ static void ui_node_draw_input(uiLayout *layout, bContext 
*C, bNodeTree *ntree,
 
        uiItemL(row, label, ICON_NONE);
        bt = block->buttons.last;
-       bt->drawflag = UI_BUT_TEXT_LEFT;
+       bt->drawflag = UI_BUT_TEXT_RIGHT;
 
        if (dependency_loop) {
                row = uiLayoutRow(split, false);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to