From 9ec243cb87c0f4e238abc7529885c3b32ba75c44 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Sat, 10 Nov 2018 00:33:42 -0600 Subject: [PATCH] fix to display that second box --- Engine/source/T3D/lighting/reflectionProbe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/lighting/reflectionProbe.cpp b/Engine/source/T3D/lighting/reflectionProbe.cpp index 9fec038bf..1def458c7 100644 --- a/Engine/source/T3D/lighting/reflectionProbe.cpp +++ b/Engine/source/T3D/lighting/reflectionProbe.cpp @@ -771,7 +771,7 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri, const MatrixF worldToObjectXfm = getTransform(); Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius)); - Box3F wb = getObjBox(); + Box3F wb = getWorldBox(); cube.setCenter(getPosition()+mProbePosOffset); wb.setCenter(getPosition() + mProbePosOffset); draw->drawCube(desc, cube, color, &worldToObjectXfm);