From 38da27d31e401a8fada44715517e8b6dd2dc42d6 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 3 Jan 2024 14:08:48 +0100 Subject: [PATCH] Fix #116585: adding new hook results in crash The issues was a missing depsgraph tag after adding the hook modifier. Because of this, the depsgraph did not make a new copy of the object, which led to a discrepancy between the number of modifiers on the original and evaluated object. --- source/blender/editors/object/object_hook.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/blender/editors/object/object_hook.cc b/source/blender/editors/object/object_hook.cc index 686f7af9c3e..86b1836cb0f 100644 --- a/source/blender/editors/object/object_hook.cc +++ b/source/blender/editors/object/object_hook.cc @@ -603,6 +603,7 @@ static int add_hook_object(const bContext *C, /* apparently this call goes from right to left... */ mul_m4_series(hmd->parentinv, pose_mat, object_eval->world_to_object, obedit->object_to_world); + DEG_id_tag_update(&obedit->id, ID_RECALC_GEOMETRY); DEG_relations_tag_update(bmain); return true;