فهرست منبع

fix to display that second box

Azaezel 6 سال پیش
والد
کامیت
9ec243cb87
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      Engine/source/T3D/lighting/reflectionProbe.cpp

+ 1 - 1
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);