mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
try to load shapes during preload
it's half the point of the protocol
This commit is contained in:
parent
c138d838bb
commit
e8ccb3443a
18 changed files with 63 additions and 71 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue