mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 22:53:47 +00:00
need to set state to ok post-load and pre-changesignal callback
This commit is contained in:
parent
3ace31c68c
commit
5ff83138cf
3 changed files with 2 additions and 12 deletions
|
|
@ -417,9 +417,10 @@ U32 ShapeAsset::load()
|
|||
}
|
||||
}
|
||||
|
||||
mLoadedState = Ok;
|
||||
|
||||
mChangeSignal.trigger();
|
||||
|
||||
mLoadedState = Ok;
|
||||
return mLoadedState;
|
||||
}
|
||||
|
||||
|
|
@ -534,7 +535,6 @@ void ShapeAsset::onAssetRefresh(void)
|
|||
mFilePath = getOwned() ? expandAssetFilePath(mFileName) : mFilePath;
|
||||
|
||||
load();
|
||||
//onAssetRefresh();
|
||||
}
|
||||
|
||||
void ShapeAsset::SplitSequencePathAndName(String& srcPath, String& srcName)
|
||||
|
|
|
|||
|
|
@ -606,15 +606,6 @@ void TSStatic::onRemove()
|
|||
Parent::onRemove();
|
||||
}
|
||||
|
||||
void TSStatic::_onResourceChanged(const Torque::Path& path)
|
||||
{
|
||||
if (path != Path(mShapeName))
|
||||
return;
|
||||
|
||||
_createShape();
|
||||
_updateShouldTick();
|
||||
}
|
||||
|
||||
void TSStatic::onShapeChanged()
|
||||
{
|
||||
_createShape();
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ protected:
|
|||
|
||||
void _renderNormals(ObjectRenderInst* ri, SceneRenderState* state, BaseMatInstance* overrideMat);
|
||||
|
||||
void _onResourceChanged(const Torque::Path& path);
|
||||
void onShapeChanged();
|
||||
|
||||
// ProcessObject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue