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.
parent
8c79297a89
commit
4ed5b59a60
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue