Fix #23235: crash with editmesh instances & drawing, only the object

in object mode should make the editmesh derivedmesh.
This commit is contained in:
2010-08-12 10:17:21 +00:00
parent e2826f379d
commit fd0a02ef1b

View File

@@ -2501,7 +2501,7 @@ void object_handle_update(Scene *scene, Object *ob)
/* includes all keys and modifiers */
if(ob->type==OB_MESH) {
EditMesh *em = BKE_mesh_get_editmesh(ob->data);
EditMesh *em = (ob == scene->obedit)? BKE_mesh_get_editmesh(ob->data): NULL;
/* evaluate drivers */
// XXX: should we push this to derivedmesh instead?