From 91d843b8bde50b4372f66d552bf386f7a4378d3a Mon Sep 17 00:00:00 2001 From: AzaezelX Date: Tue, 20 Sep 2022 15:39:42 -0500 Subject: [PATCH] correct constructorfile reference --- Engine/source/T3D/assets/ShapeAsset.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Engine/source/T3D/assets/ShapeAsset.cpp b/Engine/source/T3D/assets/ShapeAsset.cpp index 1cc848741..1f05d991a 100644 --- a/Engine/source/T3D/assets/ShapeAsset.cpp +++ b/Engine/source/T3D/assets/ShapeAsset.cpp @@ -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()) {