diff options
Diffstat (limited to 'PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp')
| -rw-r--r-- | PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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) |