From c9dc55301cd7903b7ef7c045d337ada29aa809a1 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Mon, 14 Jun 2021 11:35:36 +0200 Subject: Fix T88494: add missing depsgraph relation update tags Adding e.g. a Collection Info node creates a new depsgraph relation. Therefore the relations should be updated. --- source/blender/editors/space_node/node_add.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/space_node/node_add.cc') diff --git a/source/blender/editors/space_node/node_add.cc b/source/blender/editors/space_node/node_add.cc index 7276688e986..6143af8ed70 100644 --- a/source/blender/editors/space_node/node_add.cc +++ b/source/blender/editors/space_node/node_add.cc @@ -591,6 +591,7 @@ static int node_add_texture_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + DEG_relations_tag_update(bmain); ED_node_tag_update_nodetree(bmain, ntree, texture_node); @@ -696,6 +697,7 @@ static int node_add_collection_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + DEG_relations_tag_update(bmain); ED_node_tag_update_nodetree(bmain, ntree, collection_node); @@ -807,6 +809,7 @@ static int node_add_file_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + DEG_relations_tag_update(bmain); return OPERATOR_FINISHED; } @@ -902,6 +905,7 @@ static int node_add_mask_exec(bContext *C, wmOperator *op) snode_notify(C, snode); snode_dag_update(C, snode); + DEG_relations_tag_update(bmain); return OPERATOR_FINISHED; } -- cgit v1.2.3