Merge pull request #1188 from Azaezel/alpha41/StopShapeSpam

don't trigger shape load during shape loading
This commit is contained in:
Brian Roberts 2024-01-26 18:27:07 -06:00 committed by GitHub
commit f158fc78e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -490,7 +490,7 @@ bool TSShapeConstructor::onAdd()
mShapeAsset = mShapeAssetId;
if (mShapeAsset.notNull())
{
Resource<TSShape> shape = mShapeAsset->getShapeResource();
TSShape* shape = mShapeAsset->getShape();
if (shape)
_onLoad(shape);