Commit: b36c6b9c472aeacac1edc9908e31a24180f03b3b
Author: Porteries Tristan
Date: Tue Aug 11 21:48:06 2015 +0200
Branches: master
https://developer.blender.org/rBb36c6b9c472aeacac1edc9908e31a24180f03b3b
BGE: Fix delete constraint for replicated physics controllers.
Replicated controllers didn't free constraints list before.
===================================================================
M source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
===================================================================
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
index a485804..dbaa925 100644
--- a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
+++ b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
@@ -820,6 +820,9 @@ void
CcdPhysicsController::PostProcessReplica(class PHY_IMotionState* motionsta
m_registerCount = 0;
m_collisionShape = NULL;
+ // Clear all old constraints.
+ m_ccdConstraintRefs.clear();
+
// always create a new shape to avoid scaling bug
if (m_shapeInfo)
{
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs