preload materials for shapebasedatas and debris

This commit is contained in:
AzaezelX 2021-08-09 16:14:10 -05:00
parent e7403197c7
commit 11a29ef97a
2 changed files with 5 additions and 0 deletions

View file

@ -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;
}
}