hook editor displays back up

This commit is contained in:
Azaezel 2019-02-19 08:55:55 -06:00
parent c359bf622b
commit e4ddfcfb01
2 changed files with 8 additions and 0 deletions

View file

@ -217,6 +217,10 @@ void BoxEnvironmentProbe::prepRenderImage(SceneRenderState *state)
const bool isSelectedInEditor = (gEditingMission && isSelected());
if (isSelectedInEditor)
{
ObjectRenderInst *ri = state->getRenderPass()->allocInst<ObjectRenderInst>();
ri->renderDelegate.bind(this, &ReflectionProbe::_onRenderViz);
ri->type = RenderPassManager::RIT_Editor;
state->getRenderPass()->addInst(ri);
}
}

View file

@ -217,6 +217,10 @@ void SphereEnvironmentProbe::prepRenderImage(SceneRenderState *state)
const bool isSelectedInEditor = (gEditingMission && isSelected());
if (isSelectedInEditor)
{
ObjectRenderInst *ri = state->getRenderPass()->allocInst<ObjectRenderInst>();
ri->renderDelegate.bind(this, &ReflectionProbe::_onRenderViz);
ri->type = RenderPassManager::RIT_Editor;
state->getRenderPass()->addInst(ri);
}
}