浏览代码

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