RigidBody: use runtime.mesh_orig instead of DEG_get_original_object
This commit is contained in:
parent
0954085e1e
commit
d5a42bce38
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue