Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/drawnode.cc
| Context not available. | |||||
| #include "NOD_composite.h" | #include "NOD_composite.h" | ||||
| #include "NOD_geometry.h" | #include "NOD_geometry.h" | ||||
| #include "NOD_node_declaration.hh" | |||||
| #include "NOD_shader.h" | #include "NOD_shader.h" | ||||
| #include "NOD_texture.h" | #include "NOD_texture.h" | ||||
| #include "node_intern.h" /* own include */ | #include "node_intern.h" /* own include */ | ||||
| Context not available. | |||||
| 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->declaration && | ||||
| node->declaration->needs_attribute_search()) { | |||||
| node_geometry_add_attribute_search_button(C, node_tree, node, ptr, row); | node_geometry_add_attribute_search_button(C, node_tree, node, ptr, row); | ||||
| } | } | ||||
| else { | else { | ||||
| Context not available. | |||||