Resolve "fix(viz): Issues with VTK meshes in SightViewer: zooming and hiding"
Description
- fix the random crash when the camera is not reset because of some uninitialized variables
- reset the camera when a model is loaded in SightViewer
- enable the hide/show model when a model is loaded
- do not enable the hide/show model when an image is loaded
Closes #866 (closed)
How to test it?
- You need to set
autoresetCamera
ofmodeSeriesAdp
inOgreGenericScene.xml
back to "false" and then load a mesh. - Load a model and observe the camera is reset
- Load a model and observe the hide/show button is enabled and functional
- Load a model (without loading an image first) and observe the image buttons are not enabled