mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-17 10:25:23 +00:00
crashfix work for hot-editing shape assets tied to tsstatics
This commit is contained in:
parent
cc6bf16d95
commit
3ace31c68c
10 changed files with 15 additions and 11 deletions
|
|
@ -389,7 +389,7 @@ bool TSStatic::_createShape()
|
|||
SAFE_DELETE(mPhysicsRep);
|
||||
SAFE_DELETE(mShapeInstance);
|
||||
mAmbientThread = NULL;
|
||||
mShape = NULL;
|
||||
//mShape = NULL;
|
||||
|
||||
U32 assetStatus = ShapeAsset::getAssetErrCode(mShapeAsset);
|
||||
if (assetStatus == AssetBase::Ok || assetStatus == AssetBase::UsingFallback)
|
||||
|
|
@ -619,6 +619,9 @@ void TSStatic::onShapeChanged()
|
|||
{
|
||||
_createShape();
|
||||
_updateShouldTick();
|
||||
|
||||
if (isServerObject())
|
||||
setMaskBits(AdvancedStaticOptionsMask);
|
||||
}
|
||||
|
||||
void TSStatic::setSkinName(const char* name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue