#3878 Crash at LLPipeline::unlinkDrawable

assertInitializedDoError() on shutdown
master
Andrey Kleshchev 2025-04-04 21:49:23 +03:00 committed by Andrey Kleshchev
parent 68f20d542e
commit 2b475ad027
1 changed files with 9 additions and 1 deletions

View File

@ -253,7 +253,15 @@ void LLDrawable::cleanupReferences()
std::for_each(mFaces.begin(), mFaces.end(), DeletePointer());
mFaces.clear();
gPipeline.unlinkDrawable(this);
if (gPipeline.mInitialized)
{
gPipeline.unlinkDrawable(this);
}
else if (getSpatialGroup())
{
// Not supposed to happen?
getSpatialGroup()->getSpatialPartition()->remove(this, getSpatialGroup());
}
removeFromOctree();