mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Fixes collision shape assignment after a PhysicsShapeData resource change signal is triggered.
This commit is contained in:
parent
3d7c1bbbf7
commit
2f3dc48f45
1 changed files with 2 additions and 2 deletions
|
|
@ -257,9 +257,9 @@ void PhysicsShapeData::_onResourceChanged( const Torque::Path &path )
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reload the collision shape.
|
// 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;
|
shape = reloadShape;
|
||||||
colShape = reloadcolShape;
|
colShape = reloadcolShape;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue