mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-28 11:03:49 +00:00
Merge pull request #790 from Areloch/MiscFixes20220524
Misc Fixes for 2022/05/24
This commit is contained in:
commit
dd801ec1a1
5 changed files with 10 additions and 13 deletions
|
|
@ -221,8 +221,7 @@ StringTableEntry ImageAsset::getAssetIdByFilename(StringTableEntry fileName)
|
|||
}
|
||||
else
|
||||
{
|
||||
AssetPtr<ImageAsset> imageAsset = imageAssetId;
|
||||
imageAsset->mLoadedState = AssetErrCode::BadFileReference;
|
||||
AssetPtr<ImageAsset> imageAsset = imageAssetId; //ensures the fallback is loaded
|
||||
}
|
||||
|
||||
return imageAssetId;
|
||||
|
|
|
|||
|
|
@ -475,8 +475,7 @@ StringTableEntry ShapeAsset::getAssetIdByFilename(StringTableEntry fileName)
|
|||
}
|
||||
else
|
||||
{
|
||||
AssetPtr<ShapeAsset> shapeAsset = shapeAssetId;
|
||||
shapeAsset->mLoadedState = AssetErrCode::BadFileReference;
|
||||
AssetPtr<ShapeAsset> shapeAsset = shapeAssetId; //ensures the fallback is loaded
|
||||
}
|
||||
|
||||
return shapeAssetId;
|
||||
|
|
|
|||
|
|
@ -419,6 +419,8 @@ bool TSStatic::_createShape()
|
|||
// Reapply the current skin
|
||||
mAppliedSkinName = "";
|
||||
reSkin();
|
||||
|
||||
updateMaterials();
|
||||
}
|
||||
|
||||
prepCollision();
|
||||
|
|
@ -1619,8 +1621,6 @@ void TSStatic::updateMaterials()
|
|||
}
|
||||
}
|
||||
|
||||
mChangingMaterials.clear();
|
||||
|
||||
// Initialize the material instances
|
||||
mShapeInstance->initMaterialList();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue