Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 3,379 Lines • ▼ Show 20 Lines | case SOCK_VECTOR: | ||||
| uiItemR(layout, ptr, "default_value", DEFAULT_FLAGS, "", ICON_NONE); | uiItemR(layout, ptr, "default_value", DEFAULT_FLAGS, "", ICON_NONE); | ||||
| } | } | ||||
| else { | else { | ||||
| uiLayout *column = uiLayoutColumn(layout, true); | uiLayout *column = uiLayoutColumn(layout, true); | ||||
| uiItemR(column, ptr, "default_value", DEFAULT_FLAGS, text, ICON_NONE); | uiItemR(column, ptr, "default_value", DEFAULT_FLAGS, text, ICON_NONE); | ||||
| } | } | ||||
| } | } | ||||
| break; | break; | ||||
| case SOCK_RGBA: | case SOCK_RGBA: { | ||||
| uiLayout *row = uiLayoutSplit(layout, 0.5f, false); | |||||
| uiItemL(row, text, 0); | |||||
| uiItemR(row, ptr, "default_value", DEFAULT_FLAGS, "", 0); | |||||
| break; | |||||
| } | |||||
| case SOCK_STRING: { | case SOCK_STRING: { | ||||
| uiLayout *row = uiLayoutSplit(layout, 0.5f, false); | uiLayout *row = uiLayoutSplit(layout, 0.5f, false); | ||||
| uiItemL(row, text, 0); | uiItemL(row, text, 0); | ||||
| const bNodeTree *node_tree = (const bNodeTree *)node_ptr->owner_id; | const bNodeTree *node_tree = (const bNodeTree *)node_ptr->owner_id; | ||||
| if (node_tree->type == NTREE_GEOMETRY) { | if (node_tree->type == NTREE_GEOMETRY) { | ||||
| node_geometry_add_attribute_search_button(node_tree, node, ptr, row); | node_geometry_add_attribute_search_button(node_tree, node, ptr, row); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 631 Lines • Show Last 20 Lines | |||||