Blender Git Loki

Git Commits -> Revision 4d8f7ed

Revision 4d8f7ed by Porteries Tristan (master)
May 10, 2015, 17:21 (GMT)
BGE : Fix crash during physics mesh update.

Currently we can't update the physics mesh of an added rigid body.
The cause is that that we need to update all shapes to say that the mesh was changed, for static object we don't do that previously because we use a odd way to reallocate memory at the same place.
So now when a mesh is changed we iterate all physics controllers which use the same shape info and recreate its shape with the correct mesh.

example file : {F168100}

Reviewers: scorpion81, sergof, hg1, sybren, moguri, agoose77

Reviewed By: moguri, agoose77

Subscribers: sybren

Differential Revision: https://developer.blender.org/D1269

Commit Details:

Full Hash: 4d8f7eddda0f34f5e801d7a8a45a41b0aa945a6d
Parent Commit: 2ec221a
Lines Changed: +117, -135

4 Modified Paths:

/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+80, -120) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+14, -5) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp (+14, -10) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.h (+9, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021