Fixed fatal bug that caused a crash on changing scenes with the editor enabled #255
|
@ -265,11 +265,11 @@ namespace SHADE
|
|||
return;
|
||||
}
|
||||
|
||||
const int NUM_SHAPES = static_cast<int>(componentGroup.colliderComponent->GetCollisionShapes().size());
|
||||
for (int i = 0; i < NUM_SHAPES; ++i)
|
||||
physicsObject->AddCollisionShape(i);
|
||||
//const int NUM_SHAPES = static_cast<int>(componentGroup.colliderComponent->GetCollisionShapes().size());
|
||||
//for (int i = 0; i < NUM_SHAPES; ++i)
|
||||
// physicsObject->AddCollisionShape(i);
|
||||
|
||||
physicsObject->SyncColliders(*componentGroup.colliderComponent);
|
||||
//physicsObject->SyncColliders(*componentGroup.colliderComponent);
|
||||
}
|
||||
|
||||
void SHPhysicsObjectManager::removeRigidBody(const QueueCommand&, SHPhysicsObject* physicsObject, const PhysicsComponentGroup& componentGroup)
|
||||
|
|
Loading…
Reference in New Issue