[Bf-blender-cvs] [a272eb38f43] master: Fix T87167: Object dragged from Outliner into Geo Nodes doesn't auto update
Charlie Jolly
noreply at git.blender.org
Fri Apr 9 17:05:25 CEST 2021
Commit: a272eb38f433464e157b8370c78ed3b88ef8357c
Author: Charlie Jolly
Date: Fri Apr 9 15:10:27 2021 +0100
Branches: master
https://developer.blender.org/rBa272eb38f433464e157b8370c78ed3b88ef8357c
Fix T87167: Object dragged from Outliner into Geo Nodes doesn't auto update
Add call to `DEG_relations_tag_update`
Differential Revision: https://developer.blender.org/D10928
===================================================================
M source/blender/editors/space_node/node_add.c
===================================================================
diff --git a/source/blender/editors/space_node/node_add.c b/source/blender/editors/space_node/node_add.c
index c4fe9e9e531..82a315366dc 100644
--- a/source/blender/editors/space_node/node_add.c
+++ b/source/blender/editors/space_node/node_add.c
@@ -41,6 +41,8 @@
#include "BKE_scene.h"
#include "BKE_texture.h"
+#include "DEG_depsgraph_build.h"
+
#include "ED_node.h" /* own include */
#include "ED_render.h"
#include "ED_screen.h"
@@ -473,6 +475,7 @@ static int node_add_object_exec(bContext *C, wmOperator *op)
snode_dag_update(C, snode);
ED_node_tag_update_nodetree(bmain, ntree, object_node);
+ DEG_relations_tag_update(bmain);
return OPERATOR_FINISHED;
}
More information about the Bf-blender-cvs
mailing list