Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPorteries Tristan <republicthunderbolt9@gmail.com>2015-08-11 22:48:06 +0300
committerPorteries Tristan <republicthunderbolt9@gmail.com>2015-08-11 22:49:54 +0300
commitb36c6b9c472aeacac1edc9908e31a24180f03b3b (patch)
tree4656e25fd51422d6acc64702d9c816b98e5e9ae4 /source/gameengine/Physics
parentd22153425a516938fbe904ee3bb5a8a163a6367a (diff)
BGE: Fix delete constraint for replicated physics controllers.
Replicated controllers didn't free constraints list before.
Diffstat (limited to 'source/gameengine/Physics')
-rw-r--r--source/gameengine/Physics/Bullet/CcdPhysicsController.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
index a4858046c2a..dbaa925db08 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)
{