mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
shapes are optional for projectiles. not mandatory.
and stop yelling in the console mid way through loading.
This commit is contained in:
parent
5dbcaf55c7
commit
4eae51992e
6 changed files with 16 additions and 11 deletions
|
|
@ -905,7 +905,13 @@ bool ExplosionData::preload(bool server, String &errorStr)
|
|||
TSShapeInstance* pDummy = new TSShapeInstance(getExplosionShape(), !server);
|
||||
delete pDummy;
|
||||
|
||||
} else {
|
||||
}
|
||||
else if (mExplosionShapeAsset.notNull())
|
||||
{
|
||||
errorStr = String::ToString("ExplosionData::preload: Couldn't load shape \"%s\"", _getExplosionShapeAssetId());
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
explosionAnimation = -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue