mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-25 23:29:24 +00:00
Fixes the hook-ins so when a shape asset is changed, tsstatics now are correctly triggered for a reload
This commit is contained in:
parent
1600bfaf57
commit
8fbad31b43
4 changed files with 28 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue