mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixes collision shape assignment after a PhysicsShapeData resource change signal is triggered.
This commit is contained in:
parent
f2b86b7df3
commit
8f0e418e54
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue