Fix T98328: missing depsgraph update after adding node group

Adding node groups can change depsgraph relations, so the depsgraph
has to be rebuild.
This commit is contained in:
Jacques Lucke 2022-05-24 10:05:52 +02:00
parent e07b1b8316
commit 2ea6a0dd4d
Notes: blender-bot 2023-02-14 02:27:56 +01:00
Referenced by issue #98328, Node groups from assets cannot be refreshed automatically
1 changed files with 1 additions and 0 deletions

View File

@ -371,6 +371,7 @@ static int node_add_group_exec(bContext *C, wmOperator *op)
nodeSetActive(ntree, group_node);
ED_node_tree_propagate_change(C, bmain, nullptr);
DEG_relations_tag_update(bmain);
return OPERATOR_FINISHED;
}