mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +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
|
|
@ -896,7 +896,7 @@ bool ExplosionData::preload(bool server, String &errorStr)
|
|||
}
|
||||
}
|
||||
|
||||
if (mExplosionShapeAsset.notNull()) {
|
||||
if (getExplosionShape()) {
|
||||
|
||||
// Resolve animations
|
||||
explosionAnimation = getExplosionShape()->findSequence("ambient");
|
||||
|
|
|
|||
|
|
@ -889,7 +889,7 @@ void GroundCover::_initShapes()
|
|||
if ( mShapeAsset[i].isNull() || getShape(i) == nullptr)
|
||||
continue;
|
||||
|
||||
if ( isClientObject() && !getShape(i)->preloadMaterialList(getShape(i).getPath()) && NetConnection::filesWereDownloaded() )
|
||||
if ( isClientObject() && !getShape(i)->preloadMaterialList(getShapeFile(i)) && NetConnection::filesWereDownloaded() )
|
||||
{
|
||||
Con::warnf( "GroundCover::_initShapes() material preload failed for shape: %s", _getShapeAssetId(i));
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue