diff --git a/Engine/source/T3D/lighting/boxEnvironmentProbe.cpp b/Engine/source/T3D/lighting/boxEnvironmentProbe.cpp index 1b40362b1..e710edf30 100644 --- a/Engine/source/T3D/lighting/boxEnvironmentProbe.cpp +++ b/Engine/source/T3D/lighting/boxEnvironmentProbe.cpp @@ -217,6 +217,10 @@ void BoxEnvironmentProbe::prepRenderImage(SceneRenderState *state) const bool isSelectedInEditor = (gEditingMission && isSelected()); if (isSelectedInEditor) { + ObjectRenderInst *ri = state->getRenderPass()->allocInst(); + ri->renderDelegate.bind(this, &ReflectionProbe::_onRenderViz); + ri->type = RenderPassManager::RIT_Editor; + state->getRenderPass()->addInst(ri); } } diff --git a/Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp b/Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp index a3b4a405e..151d96424 100644 --- a/Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp +++ b/Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp @@ -217,6 +217,10 @@ void SphereEnvironmentProbe::prepRenderImage(SceneRenderState *state) const bool isSelectedInEditor = (gEditingMission && isSelected()); if (isSelectedInEditor) { + ObjectRenderInst *ri = state->getRenderPass()->allocInst(); + ri->renderDelegate.bind(this, &ReflectionProbe::_onRenderViz); + ri->type = RenderPassManager::RIT_Editor; + state->getRenderPass()->addInst(ri); } }