correct constructorfile reference

This commit is contained in:
AzaezelX 2022-09-20 15:39:42 -05:00
parent af35853f46
commit 91d843b8bd

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 could not find %s!", mConstructorFilePath);
mDiffuseImposterPath = getOwned() ? expandAssetFilePath(mDiffuseImposterFileName) : mDiffuseImposterFileName;
if (mDiffuseImposterPath == StringTable->EmptyString())
{