From e4ddfcfb0193efefd69612117e703e6fa4516577 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Tue, 19 Feb 2019 08:55:55 -0600 Subject: [PATCH] hook editor displays back up --- Engine/source/T3D/lighting/boxEnvironmentProbe.cpp | 4 ++++ Engine/source/T3D/lighting/sphereEnvironmentProbe.cpp | 4 ++++ 2 files changed, 8 insertions(+) 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); } }