Browse Source

Fixes collision shape assignment after a PhysicsShapeData resource change signal is triggered.

OTHGMars 8 years ago
parent
commit
8f0e418e54
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/source/T3D/physics/physicsShape.cpp

+ 2 - 2
Engine/source/T3D/physics/physicsShape.cpp

@@ -257,9 +257,9 @@ void PhysicsShapeData::_onResourceChanged( const Torque::Path &path )
    }
 
    // Reload the collision shape.
-   reloadcolShape = shape->buildColShape( false, Point3F::One );
+   reloadcolShape = reloadShape->buildColShape( false, Point3F::One );
 
-   if ( bool(reloadShape) &&  bool(colShape))
+   if ( bool(reloadShape) &&  bool(reloadcolShape))
    {
       shape = reloadShape;
       colShape = reloadcolShape;