From 2523613732b07a9c8b428969e57b5d7df1525172 Mon Sep 17 00:00:00 2001 From: Diren D Bharwani Date: Wed, 23 Nov 2022 01:01:29 +0800 Subject: [PATCH] Fixed fatal bug that prevent scene changing while the editor is enabled --- .../src/Physics/PhysicsObject/SHPhysicsObjectManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SHADE_Engine/src/Physics/PhysicsObject/SHPhysicsObjectManager.cpp b/SHADE_Engine/src/Physics/PhysicsObject/SHPhysicsObjectManager.cpp index 389983c3..bd68de82 100644 --- a/SHADE_Engine/src/Physics/PhysicsObject/SHPhysicsObjectManager.cpp +++ b/SHADE_Engine/src/Physics/PhysicsObject/SHPhysicsObjectManager.cpp @@ -265,11 +265,11 @@ namespace SHADE return; } - const int NUM_SHAPES = static_cast(componentGroup.colliderComponent->GetCollisionShapes().size()); - for (int i = 0; i < NUM_SHAPES; ++i) - physicsObject->AddCollisionShape(i); + //const int NUM_SHAPES = static_cast(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)