mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
correct constructorfile reference
This commit is contained in:
parent
af35853f46
commit
91d843b8bd
1 changed files with 3 additions and 2 deletions
|
|
@ -207,8 +207,9 @@ void ShapeAsset::initializeAsset()
|
||||||
//Ensure our path is expando'd if it isn't already
|
//Ensure our path is expando'd if it isn't already
|
||||||
mFilePath = getOwned() ? expandAssetFilePath(mFileName) : mFilePath;
|
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;
|
mDiffuseImposterPath = getOwned() ? expandAssetFilePath(mDiffuseImposterFileName) : mDiffuseImposterFileName;
|
||||||
if (mDiffuseImposterPath == StringTable->EmptyString())
|
if (mDiffuseImposterPath == StringTable->EmptyString())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue