(viz): 3D scene aspect ratio is broken in some apps
Description
Since the merge of !870 (merged) Some applications like the ToolCalibration activity from SightCalibrator shows a broken 3D scene aspect ratio until the window is resized.
Steps to reproduce
- Launch ToolCalibration from SightCalibrator
- On Linux, you can observe the axis is very, very thin... or even the app may crash:
sightrun.bin: ./OgreMain/include/OgreAxisAlignedBox.h:220: void Ogre::AxisAlignedBox::setExtents(const Vector3&, const Vector3&): Assertion `(min.x <= max.x && min.y <= max.y && min.z <= max.z) && "The minimum corner of the box must be less than or equal to maximum corner"' failed.
zsh: IOT instruction (core dumped) bin/sightcalibrator
Proposal
Optional section to give some functional or technical hints
Functional specifications
If there is any change to the workflow, UX/UI design, screenshots, etc..., please describe it here
Technical specifications
Details of the implementation of the fix
Test plan
Describe how you will verify that the implementation fulfils the specifications