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 f2b86b7df3
commit 8f0e418e54

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;