crashfix work for hot-editing shape assets tied to tsstatics

This commit is contained in:
AzaezelX 2024-04-06 14:48:22 -05:00
parent cc6bf16d95
commit 3ace31c68c
10 changed files with 15 additions and 11 deletions

View file

@ -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)