RigidBody: use runtime.mesh_orig instead of DEG_get_original_object

This commit is contained in:
Sybren A. Stüvel 2018-06-25 16:35:23 +02:00
parent 0954085e1e
commit d5a42bce38
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ static Mesh *rigidbody_get_mesh(Object *ob)
* on the original; otherwise every time the CoW is recreated it will
* have to be recomputed. */
BLI_assert(ob->rigidbody_object->mesh_source == RBO_MESH_BASE);
return DEG_get_original_object(ob)->data;
return ob->runtime.mesh_orig;
}
/* Just return something sensible so that at least Blender won't crash. */