Blender Git Loki
Git Commits -> Revision 1f9adff
Revision 1f9adff by Mitchell Stokes (master) July 10, 2012, 02:05 (GMT) |
Fix for a crash caused by ReplaceMesh changing an objects physics shape. CcdShapeConstructionInfo::UpdateMesh() would change the CcdShapeConstructionInfo's m_meshObject, but didn't change m_meshShapeMap, which means the CcdShapeConstructionInfo object's destructor would not find it's m_meshObject in the m_meshShapeMap. This leaves some nasty dangling pointers laying around which caused issues if the scene was re-run, or the scene was changed to one that also had the mesh. Note: This fix could cause other issues with shared physics meshes. In general, we may want to re-evaluate how we handle updating potentially shared physics meshes. |
Commit Details:
Full Hash: 1f9adff26fd79f03f9d6616ef70976f0fc81ee0c
SVN Revision: 48784
Parent Commit: 565f10a
Lines Changed: +9, -0
1 Modified Path:
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+9, -0) (Diff)