mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-24 14:49:27 +00:00
preload materials for shapebasedatas and debris
This commit is contained in:
parent
e7403197c7
commit
11a29ef97a
2 changed files with 5 additions and 0 deletions
|
|
@ -285,6 +285,8 @@ bool DebrisData::preload(bool server, String &errorStr)
|
|||
{
|
||||
TSShapeInstance* pDummy = new TSShapeInstance(mShape, !server);
|
||||
delete pDummy;
|
||||
if (!server && !mShape->preloadMaterialList(mShape.getPath()) && NetConnection::filesWereDownloaded())
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue