Fixes the hook-ins so when a shape asset is changed, tsstatics now are correctly triggered for a reload

This commit is contained in:
Areloch 2020-09-13 17:57:19 -05:00
parent 1600bfaf57
commit 8fbad31b43
4 changed files with 28 additions and 6 deletions

View file

@ -211,7 +211,7 @@ void ShapeAsset::setShapeConstructorFile(const char* pShapeConstructorFile)
void ShapeAsset::_onResourceChanged(const Torque::Path &path)
{
if (path != Torque::Path(mFileName) )
if (path != Torque::Path(mFilePath) )
return;
refreshAsset();
@ -313,7 +313,7 @@ bool ShapeAsset::loadShape()
}
}
onShapeChanged.trigger(this);
mChangeSignal.trigger();
return true;
}