Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_add.cc
| Show First 20 Lines • Show All 616 Lines • ▼ Show 20 Lines | static bool node_add_collection_poll(bContext *C) | ||||
| return ED_operator_node_editable(C) && ELEM(snode->nodetree->type, NTREE_GEOMETRY) && | return ED_operator_node_editable(C) && ELEM(snode->nodetree->type, NTREE_GEOMETRY) && | ||||
| !UI_but_active_drop_name(C); | !UI_but_active_drop_name(C); | ||||
| } | } | ||||
| void NODE_OT_add_collection(wmOperatorType *ot) | void NODE_OT_add_collection(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Add Node Collection"; | ot->name = "Add Node Collection"; | ||||
| ot->description = "Add an collection info node to the current node editor"; | ot->description = "Add a collection info node to the current node editor"; | ||||
pioverfour: An common copy/paste error
^-- Joke intended | |||||
| ot->idname = "NODE_OT_add_collection"; | ot->idname = "NODE_OT_add_collection"; | ||||
| /* callbacks */ | /* callbacks */ | ||||
| ot->exec = node_add_collection_exec; | ot->exec = node_add_collection_exec; | ||||
| ot->invoke = node_add_collection_invoke; | ot->invoke = node_add_collection_invoke; | ||||
| ot->poll = node_add_collection_poll; | ot->poll = node_add_collection_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines | |||||
An common copy/paste error
^-- Joke intended