mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33: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
|
|
@ -276,12 +276,10 @@ bool DebrisData::preload(bool server, String &errorStr)
|
|||
|
||||
if (getShape())
|
||||
{
|
||||
{
|
||||
TSShapeInstance* pDummy = new TSShapeInstance(getShape(), !server);
|
||||
delete pDummy;
|
||||
if (!server && !getShape()->preloadMaterialList(getShapeFile()) && NetConnection::filesWereDownloaded())
|
||||
return false;
|
||||
}
|
||||
TSShapeInstance* pDummy = new TSShapeInstance(getShape(), !server);
|
||||
delete pDummy;
|
||||
if (!server && !getShape()->preloadMaterialList(getShapeFile()) && NetConnection::filesWereDownloaded())
|
||||
return false;
|
||||
}
|
||||
else if (!mShapeAsset.isNull())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue