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

@ -347,6 +347,9 @@ bool ShapeBaseData::preload(bool server, String &errorStr)
S32 i;
if (ShapeAsset::getAssetErrCode(mShapeAsset) != ShapeAsset::Failed && ShapeAsset::getAssetErrCode(mShapeAsset) != ShapeAsset::BadFileReference)
{
if (!server && !mShape->preloadMaterialList(mShape.getPath()) && NetConnection::filesWereDownloaded())
shapeError = true;
if(computeCRC)
{
Con::printf("Validation required for shape asset: %s", mShapeAsset.getAssetId());