BGE patch: fix transform bug on compound shape: child shape didn't take into account...
[blender.git] / source / gameengine / Physics / Bullet / CcdPhysicsController.cpp
index b67cf0425c5f9cce2358659ea88450a3e0995221..b9266bb9b0ec283b083ff4874c166d6838134e00 100644 (file)
@@ -924,6 +924,7 @@ btCollisionShape* CcdShapeConstructionInfo::CreateBulletShape()
                                collisionShape = nextShapeInfo->CreateBulletShape();
                                if (collisionShape)
                                {
+                                       collisionShape->setLocalScaling(nextShapeInfo->m_childScale);
                                        compoundShape->addChildShape(nextShapeInfo->m_childTrans, collisionShape);
                                }
                        }