mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
hook editor displays back up
This commit is contained in:
parent
c359bf622b
commit
e4ddfcfb01
2 changed files with 8 additions and 0 deletions
|
|
@ -217,6 +217,10 @@ void BoxEnvironmentProbe::prepRenderImage(SceneRenderState *state)
|
||||||
const bool isSelectedInEditor = (gEditingMission && isSelected());
|
const bool isSelectedInEditor = (gEditingMission && isSelected());
|
||||||
if (isSelectedInEditor)
|
if (isSelectedInEditor)
|
||||||
{
|
{
|
||||||
|
ObjectRenderInst *ri = state->getRenderPass()->allocInst<ObjectRenderInst>();
|
||||||
|
ri->renderDelegate.bind(this, &ReflectionProbe::_onRenderViz);
|
||||||
|
ri->type = RenderPassManager::RIT_Editor;
|
||||||
|
state->getRenderPass()->addInst(ri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -217,6 +217,10 @@ void SphereEnvironmentProbe::prepRenderImage(SceneRenderState *state)
|
||||||
const bool isSelectedInEditor = (gEditingMission && isSelected());
|
const bool isSelectedInEditor = (gEditingMission && isSelected());
|
||||||
if (isSelectedInEditor)
|
if (isSelectedInEditor)
|
||||||
{
|
{
|
||||||
|
ObjectRenderInst *ri = state->getRenderPass()->allocInst<ObjectRenderInst>();
|
||||||
|
ri->renderDelegate.bind(this, &ReflectionProbe::_onRenderViz);
|
||||||
|
ri->type = RenderPassManager::RIT_Editor;
|
||||||
|
state->getRenderPass()->addInst(ri);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue