mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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
|
|
@ -76,6 +76,10 @@ protected:
|
|||
Vector<StringTableEntry> mAnimationAssetIds;
|
||||
Vector<AssetPtr<ShapeAnimationAsset>> mAnimationAssets;
|
||||
|
||||
typedef Signal<void()> ShapeAssetChanged;
|
||||
|
||||
ShapeAssetChanged mChangeSignal;
|
||||
|
||||
public:
|
||||
ShapeAsset();
|
||||
virtual ~ShapeAsset();
|
||||
|
|
@ -122,7 +126,7 @@ public:
|
|||
|
||||
void _onResourceChanged(const Torque::Path &path);
|
||||
|
||||
Signal< void(ShapeAsset*) > onShapeChanged;
|
||||
ShapeAssetChanged& getChangedSignal() { return mChangeSignal; }
|
||||
|
||||
void setShapeFile(const char* pScriptFile);
|
||||
inline StringTableEntry getShapeFile(void) const { return mFileName; };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue