Fix: Outliner missing update adding asset nodegroups #111924

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:outliner_missing_updates_adding_asset_nodegroups into main 2023-09-04 12:46:28 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -324,6 +324,7 @@ static int node_add_group_exec(bContext *C, wmOperator *op)
nodeSetActive(ntree, group_node);
ED_node_tree_propagate_change(C, bmain, nullptr);
WM_event_add_notifier(C, NC_NODE | NA_ADDED, nullptr);
DEG_relations_tag_update(bmain);
return OPERATOR_FINISHED;
}
@ -425,6 +426,7 @@ static bool add_node_group_asset(const bContext &C,
nodeSetActive(&edit_tree, group_node);
ED_node_tree_propagate_change(&C, &bmain, nullptr);
WM_event_add_notifier(&C, NC_NODE | NA_ADDED, nullptr);
DEG_relations_tag_update(&bmain);
return true;