mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
fix to display that second box
This commit is contained in:
parent
b19fe23473
commit
9ec243cb87
1 changed files with 1 additions and 1 deletions
|
|
@ -771,7 +771,7 @@ void ReflectionProbe::_onRenderViz(ObjectRenderInst *ri,
|
||||||
const MatrixF worldToObjectXfm = getTransform();
|
const MatrixF worldToObjectXfm = getTransform();
|
||||||
|
|
||||||
Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius));
|
Box3F cube(-Point3F(mRadius, mRadius, mRadius),Point3F(mRadius, mRadius, mRadius));
|
||||||
Box3F wb = getObjBox();
|
Box3F wb = getWorldBox();
|
||||||
cube.setCenter(getPosition()+mProbePosOffset);
|
cube.setCenter(getPosition()+mProbePosOffset);
|
||||||
wb.setCenter(getPosition() + mProbePosOffset);
|
wb.setCenter(getPosition() + mProbePosOffset);
|
||||||
draw->drawCube(desc, cube, color, &worldToObjectXfm);
|
draw->drawCube(desc, cube, color, &worldToObjectXfm);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue