Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_node/node_group.cc
| Show First 20 Lines • Show All 1,041 Lines • ▼ Show 20 Lines | if (gnode) { | ||||
| nodeSetActive(&ntree, gnode); | nodeSetActive(&ntree, gnode); | ||||
| if (ngroup) { | if (ngroup) { | ||||
| ED_node_tree_push(&snode, ngroup, gnode); | ED_node_tree_push(&snode, ngroup, gnode); | ||||
| } | } | ||||
| } | } | ||||
| ED_node_tree_propagate_change(C, bmain, nullptr); | ED_node_tree_propagate_change(C, bmain, nullptr); | ||||
| WM_event_add_notifier(C, NC_NODE | NA_ADDED, NULL); | |||||
| /* We broke relations in node tree, need to rebuild them in the graphs. */ | /* We broke relations in node tree, need to rebuild them in the graphs. */ | ||||
| DEG_relations_tag_update(bmain); | DEG_relations_tag_update(bmain); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void NODE_OT_group_make(wmOperatorType *ot) | void NODE_OT_group_make(wmOperatorType *ot) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||