Fix T46738: Crash adding hook to linked mesh dupli
This commit is contained in:
@@ -380,6 +380,10 @@ void EDBM_mesh_make(ToolSettings *ts, Object *ob)
|
||||
EDBM_selectmode_flush(me->edit_btmesh);
|
||||
}
|
||||
|
||||
/**
|
||||
* \warning This can invalidate the #DerivedMesh cache of other objects (for linked duplicates).
|
||||
* Most callers should run #DAG_id_tag_update on \a ob, see: T46738.
|
||||
*/
|
||||
void EDBM_mesh_load(Object *ob)
|
||||
{
|
||||
Mesh *me = ob->data;
|
||||
|
||||
@@ -318,6 +318,8 @@ static bool object_hook_index_array(Scene *scene, Object *obedit,
|
||||
EDBM_mesh_load(obedit);
|
||||
EDBM_mesh_make(scene->toolsettings, obedit);
|
||||
|
||||
DAG_id_tag_update(&obedit->id, 0);
|
||||
|
||||
em = me->edit_btmesh;
|
||||
|
||||
EDBM_mesh_normals_update(em);
|
||||
|
||||
Reference in New Issue
Block a user