From 6e10ad5ea825783ff044973849358d8ef0759ec3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 3 Dec 2015 10:44:27 +1100 Subject: Fix T46913: Crash adding hook to linked mesh dupli Follow up to T46738, we need to tag the object data for recalculation. --- source/blender/editors/object/object_hook.c | 2 +- source/blender/editors/object/object_relations.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/object') diff --git a/source/blender/editors/object/object_hook.c b/source/blender/editors/object/object_hook.c index 6a1220bbbaa..492b6724f93 100644 --- a/source/blender/editors/object/object_hook.c +++ b/source/blender/editors/object/object_hook.c @@ -318,7 +318,7 @@ 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); + DAG_id_tag_update(obedit->data, 0); em = me->edit_btmesh; diff --git a/source/blender/editors/object/object_relations.c b/source/blender/editors/object/object_relations.c index c638714a951..a1f59166c81 100644 --- a/source/blender/editors/object/object_relations.c +++ b/source/blender/editors/object/object_relations.c @@ -138,6 +138,8 @@ static int vertex_parent_set_exec(bContext *C, wmOperator *op) EDBM_mesh_load(obedit); EDBM_mesh_make(scene->toolsettings, obedit); + DAG_id_tag_update(obedit->data, 0); + em = me->edit_btmesh; EDBM_mesh_normals_update(em); -- cgit v1.2.3