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:
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
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue