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

This commit is contained in:
OTHGMars 2017-07-11 19:11:09 -04:00
parent 3d7c1bbbf7
commit 2f3dc48f45

View file

@ -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;