Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_add.cc
| Show First 20 Lines • Show All 771 Lines • ▼ Show 20 Lines | if (prop) { | ||||
| RNA_property_update(C, &ptr, prop); | RNA_property_update(C, &ptr, prop); | ||||
| } | } | ||||
| else if (snode) { | else if (snode) { | ||||
| snode->nodetree = ntree; | snode->nodetree = ntree; | ||||
| ED_node_tree_update(C); | ED_node_tree_update(C); | ||||
| } | } | ||||
| WM_event_add_notifier(C, NC_NODE | NA_ADDED, NULL); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static const EnumPropertyItem *new_node_tree_type_itemf(bContext *UNUSED(C), | static const EnumPropertyItem *new_node_tree_type_itemf(bContext *UNUSED(C), | ||||
| PointerRNA *UNUSED(ptr), | PointerRNA *UNUSED(ptr), | ||||
| PropertyRNA *UNUSED(prop), | PropertyRNA *UNUSED(prop), | ||||
| bool *r_free) | bool *r_free) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||