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:
parent
d377ef2543
commit
38da27d31e
@ -603,6 +603,7 @@ static int add_hook_object(const bContext *C,
|
|||||||
/* apparently this call goes from right to left... */
|
/* apparently this call goes from right to left... */
|
||||||
mul_m4_series(hmd->parentinv, pose_mat, object_eval->world_to_object, obedit->object_to_world);
|
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);
|
DEG_relations_tag_update(bmain);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user