shapes are optional for projectiles. not mandatory.

and stop yelling in the console mid way through loading.
This commit is contained in:
AzaezelX 2025-07-07 16:49:56 -05:00
parent 5dbcaf55c7
commit 4eae51992e
6 changed files with 16 additions and 11 deletions

View file

@ -389,9 +389,9 @@ bool ProjectileData::preload(bool server, String &errorStr)
TSShapeInstance* pDummy = new TSShapeInstance(getProjectileShape(), !server);
delete pDummy;
}
else
else if (mProjectileShapeAsset.notNull())
{
errorStr = String::ToString("ProjectileData::load: Couldn't load shape \"%s\"", _getProjectileShapeAssetId());
errorStr = String::ToString("ProjectileData::preload: Couldn't load shape \"%s\"", _getProjectileShapeAssetId());
return false;
}