From 2398860b2b9bd6d9ec55a4b1cfddbcf1f6e4ebf6 Mon Sep 17 00:00:00 2001 From: Ales Borovicka Date: Wed, 15 Mar 2017 15:20:53 +0100 Subject: PhysX 3.4, APEX 1.4 patch release @21821222 --- PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp') diff --git a/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp b/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp index 06474839..cb3b5f66 100644 --- a/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp +++ b/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp @@ -100,10 +100,13 @@ void Sc::ShapeSim::initSubsystemsDependingOnElementID() PX_PROFILE_ZONE("API.simAddShapeToBroadPhase", scScene.getContextId()); if(isBroadPhase(mCore.getFlags())) { - internalAddToBroadPhase(); - - scScene.updateContactDistance(index, getContactOffset()); + internalAddToBroadPhase(); + } + else + { + scScene.getAABBManager()->reserveSpaceForBounds(index); } + scScene.updateContactDistance(index, getContactOffset()); } if(scScene.getDirtyShapeSimMap().size() <= index) -- cgit v1.2.3