From 73a7d205e2190f0a1a96878b71eb0b7aecd42a53 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Tue, 6 Nov 2018 20:00:34 -0600 Subject: [PATCH] add in secondary bounds box display for probes as that is not actually linked to the radius/box-based-on-radius --- Engine/source/T3D/lighting/reflectionProbe.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine/source/T3D/lighting/reflectionProbe.cpp b/Engine/source/T3D/lighting/reflectionProbe.cpp index 6b82f9eb7..b18a96e0a 100644 --- a/Engine/source/T3D/lighting/reflectionProbe.cpp +++ b/Engine/source/T3D/lighting/reflectionProbe.cpp @@ -770,8 +770,11 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri, const MatrixF worldToObjectXfm = getTransform(); Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius)); + Box3F wb = getObjBox(); cube.setCenter(getPosition()+mProbePosOffset); + wb.setCenter(getPosition() + mProbePosOffset); draw->drawCube(desc, cube, color, &worldToObjectXfm); + draw->drawCube(desc, wb, color, &worldToObjectXfm); } }