[Bf-blender-cvs] [d88811aed3c] master: Fix T100980: Missing deg update when duplicating a geometry nodetree in node editor.
Bastien Montagne
noreply at git.blender.org
Tue Sep 13 16:42:44 CEST 2022
Commit: d88811aed3cd84cd772d104c97e15fddb466c78d
Author: Bastien Montagne
Date: Tue Sep 13 16:40:57 2022 +0200
Branches: master
https://developer.blender.org/rBd88811aed3cd84cd772d104c97e15fddb466c78d
Fix T100980: Missing deg update when duplicating a geometry nodetree in node editor.
Tagging depsgraph for relation rebuild does not replace tagging IDs for update.
===================================================================
M source/blender/editors/object/object_modifier.cc
===================================================================
diff --git a/source/blender/editors/object/object_modifier.cc b/source/blender/editors/object/object_modifier.cc
index 2de33a3563a..b8613c0ea37 100644
--- a/source/blender/editors/object/object_modifier.cc
+++ b/source/blender/editors/object/object_modifier.cc
@@ -3397,6 +3397,7 @@ static int geometry_node_tree_copy_assign_exec(bContext *C, wmOperator *UNUSED(o
nmd->node_group = new_tree;
id_us_min(&tree->id);
+ DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY);
DEG_relations_tag_update(bmain);
WM_event_add_notifier(C, NC_OBJECT | ND_MODIFIER, ob);
return OPERATOR_FINISHED;
More information about the Bf-blender-cvs
mailing list