BGE: Fix compound child shape added on instance game object
This commit is contained in:
parent
df422314c1
commit
15751238d5
|
@ -1576,8 +1576,7 @@ void CcdPhysicsController::AddCompoundChild(PHY_IPhysicsController* child)
|
|||
const btCollisionShape* childShape = childBody->getCollisionShape();
|
||||
if (!rootShape ||
|
||||
!childShape ||
|
||||
rootShape->getShapeType() != COMPOUND_SHAPE_PROXYTYPE ||
|
||||
childShape->getShapeType() == COMPOUND_SHAPE_PROXYTYPE)
|
||||
rootShape->getShapeType() != COMPOUND_SHAPE_PROXYTYPE)
|
||||
return;
|
||||
btCompoundShape* compoundShape = (btCompoundShape*)rootShape;
|
||||
// compute relative transformation between parent and child
|
||||
|
|
Loading…
Reference in New Issue