aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp')
-rw-r--r--PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp b/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp
index 159450ce..42bd5e88 100644
--- a/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp
+++ b/PhysX_3.4/Source/SimulationController/src/ScShapeSim.cpp
@@ -185,7 +185,8 @@ void Sc::ShapeSim::removeFromBroadPhase(bool wakeOnLostTouch)
void Sc::ShapeSim::reinsertBroadPhase()
{
- internalRemoveFromBroadPhase();
+ if(isInBroadPhase())
+ internalRemoveFromBroadPhase();
// internalAddToBroadPhase();
Sc::Scene& scene = getScene();