mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +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();
|
mChangeSignal.trigger();
|
||||||
|
|
||||||
mLoadedState = Ok;
|
|
||||||
return mLoadedState;
|
return mLoadedState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -534,7 +535,6 @@ void ShapeAsset::onAssetRefresh(void)
|
||||||
mFilePath = getOwned() ? expandAssetFilePath(mFileName) : mFilePath;
|
mFilePath = getOwned() ? expandAssetFilePath(mFileName) : mFilePath;
|
||||||
|
|
||||||
load();
|
load();
|
||||||
//onAssetRefresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShapeAsset::SplitSequencePathAndName(String& srcPath, String& srcName)
|
void ShapeAsset::SplitSequencePathAndName(String& srcPath, String& srcName)
|
||||||
|
|
|
||||||
|
|
@ -606,15 +606,6 @@ void TSStatic::onRemove()
|
||||||
Parent::onRemove();
|
Parent::onRemove();
|
||||||
}
|
}
|
||||||
|
|
||||||
void TSStatic::_onResourceChanged(const Torque::Path& path)
|
|
||||||
{
|
|
||||||
if (path != Path(mShapeName))
|
|
||||||
return;
|
|
||||||
|
|
||||||
_createShape();
|
|
||||||
_updateShouldTick();
|
|
||||||
}
|
|
||||||
|
|
||||||
void TSStatic::onShapeChanged()
|
void TSStatic::onShapeChanged()
|
||||||
{
|
{
|
||||||
_createShape();
|
_createShape();
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,6 @@ protected:
|
||||||
|
|
||||||
void _renderNormals(ObjectRenderInst* ri, SceneRenderState* state, BaseMatInstance* overrideMat);
|
void _renderNormals(ObjectRenderInst* ri, SceneRenderState* state, BaseMatInstance* overrideMat);
|
||||||
|
|
||||||
void _onResourceChanged(const Torque::Path& path);
|
|
||||||
void onShapeChanged();
|
void onShapeChanged();
|
||||||
|
|
||||||
// ProcessObject
|
// ProcessObject
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue