Merge pull request #899 from Azaezel/alpha401/fixFileRef

correct constructorfile reference
This commit is contained in:
Brian Roberts 2022-09-20 16:08:47 -05:00 committed by GitHub
commit 72230e2124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,8 +207,9 @@ void ShapeAsset::initializeAsset()
//Ensure our path is expando'd if it isn't already
mFilePath = getOwned() ? expandAssetFilePath(mFileName) : mFilePath;
mConstructorFilePath = getOwned() ? expandAssetFilePath(mConstructorFilePath) : mConstructorFilePath;
mConstructorFilePath = getOwned() ? expandAssetFilePath(mConstructorFileName) : mConstructorFilePath;
if (!Torque::FS::IsFile(mConstructorFilePath))
Con::errorf("ShapeAsset::initializeAsset (%s) could not find %s!", getAssetName(), mConstructorFilePath);
mDiffuseImposterPath = getOwned() ? expandAssetFilePath(mDiffuseImposterFileName) : mDiffuseImposterFileName;
if (mDiffuseImposterPath == StringTable->EmptyString())
{