try to load shapes during preload

it's half the point of the protocol
This commit is contained in:
AzaezelX 2025-07-06 19:51:55 -05:00
parent c138d838bb
commit e8ccb3443a
18 changed files with 63 additions and 71 deletions

View file

@ -345,7 +345,7 @@ bool GuiObjectView::setObjectModel( const String& modelName )
return false;
}
if (!getModel()->preloadMaterialList(getModel().getPath())) return false;
if (!getModel()->preloadMaterialList(getModelFile())) return false;
// Instantiate it.
@ -398,7 +398,7 @@ bool GuiObjectView::setMountedObject( const String& modelName )
return false;
}
if (!getMountedModel()->preloadMaterialList(getMountedModel().getPath())) return false;
if (!getMountedModel()->preloadMaterialList(getMountedModelFile())) return false;
mMountedModelInstance = new TSShapeInstance(getMountedModel(), true);
mMountedModelInstance->resetMaterialList();