fix(viz): grid adaptor disappears when the view is aligned with Y axis
Description
viz::scene3d::adaptor::grid
disappears when the view is aligned with Y axis.
Screenshot |
---|
Steps to reproduce
- Open
sightviewer
. - Display the axis.
- Move the camera and align it with
Y
(green) more or less precisely. - The grid disappears.
Proposal
This is caused by us setting the bounding box of m_line
in viz/scene3d/adaptor/grid.cpp
at l.214
.
Though this certainly works as intended (I see no reason to add a bounding box otherwise), I find the behaviour disturbing.
The grid should serve as a guide regardless of the camera orientation.
I propose to simply remove this bounding box (OGRE sets it to infinite by default, I think). The draw calls for this grid shouldn't be a performance bottleneck any way.
Functional specifications
The grid gets displayed regardless of the camera orientation.
Technical specifications
No changes in the public API.
Test plan
Manual testing in Sight Viewer.