Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Jolly <charlie>2021-03-24 16:57:27 +0300
committerCharlie Jolly <mistajolly@gmail.com>2021-03-24 17:24:55 +0300
commit337a122e44a3f6b28b8118c9fc4f06e397885c13 (patch)
treed74a3b6b62fcc7f2a9622033d338fded7628d234
parent8bbd6ba8b738309ed49160691797e1bb2bdd3321 (diff)
Fix T86722: Missing updates after geometry nodes drag and drop
Add missing call to ED_node_tag_update_nodetree which solves the missing update on initial drag. Reviewed By: HooglyBoogly Differential Revision: https://developer.blender.org/D10769
-rw-r--r--source/blender/editors/space_node/node_add.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_add.c b/source/blender/editors/space_node/node_add.c
index a646804e0fd..8369f3e9258 100644
--- a/source/blender/editors/space_node/node_add.c
+++ b/source/blender/editors/space_node/node_add.c
@@ -472,6 +472,8 @@ static int node_add_object_exec(bContext *C, wmOperator *op)
snode_notify(C, snode);
snode_dag_update(C, snode);
+ ED_node_tag_update_nodetree(bmain, ntree, object_node);
+
return OPERATOR_FINISHED;
}
@@ -568,6 +570,8 @@ static int node_add_texture_exec(bContext *C, wmOperator *op)
snode_notify(C, snode);
snode_dag_update(C, snode);
+ ED_node_tag_update_nodetree(bmain, ntree, texture_node);
+
return OPERATOR_FINISHED;
}
@@ -670,6 +674,8 @@ static int node_add_collection_exec(bContext *C, wmOperator *op)
snode_notify(C, snode);
snode_dag_update(C, snode);
+ ED_node_tag_update_nodetree(bmain, ntree, collection_node);
+
return OPERATOR_FINISHED;
}