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
This commit is contained in:
Charlie Jolly 2021-04-09 15:10:27 +01:00
parent e3a06420b2
commit a272eb38f4
Notes: blender-bot 2023-02-14 02:30:11 +01:00
Referenced by issue #87167, Object dragged from Outliner into Geo Nodes doesn't auto update
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}