Make sure to check if we're a hero probe before attempting to register with the hero probe manager. If we're already in the list, this will return false.

meow-7.2.2
Jonathan "Geenz" Goodman 2024-02-26 01:34:40 -08:00
parent 8c79297a89
commit 4ed5b59a60
1 changed files with 3 additions and 1 deletions

View File

@ -4416,7 +4416,9 @@ void LLVOVolume::updateReflectionProbePtr()
{
// Geenz: This is a special case - what we want here is a hero probe.
// What we want to do here is instantiate a hero probe from the hero probe manager.
mIsHeroProbe = gPipeline.mHeroProbeManager.registerViewerObject(this);
if (!mIsHeroProbe)
mIsHeroProbe = gPipeline.mHeroProbeManager.registerViewerObject(this);
}
}
else if (mReflectionProbe.notNull() || getReflectionProbeIsMirror())