Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.c
| Show First 20 Lines • Show All 3,452 Lines • ▼ Show 20 Lines | case SOCK_RGBA: { | ||||
| break; | break; | ||||
| } | } | ||||
| case SOCK_STRING: { | case SOCK_STRING: { | ||||
| uiLayout *row = uiLayoutSplit(layout, 0.4f, false); | uiLayout *row = uiLayoutSplit(layout, 0.4f, 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(C, node_tree, node, ptr, row); | ||||
| } | } | ||||
| else { | else { | ||||
| uiItemR(row, ptr, "default_value", DEFAULT_FLAGS, "", 0); | uiItemR(row, ptr, "default_value", DEFAULT_FLAGS, "", 0); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case SOCK_OBJECT: { | case SOCK_OBJECT: { | ||||
| ▲ Show 20 Lines • Show All 672 Lines • Show Last 20 Lines | |||||