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.
This commit is contained in:
Jacques Lucke 2024-01-03 14:08:48 +01:00
parent d377ef2543
commit 38da27d31e
1 changed files with 1 additions and 0 deletions

View File

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