Camera change behavior
From #173 (closed) regarding the behavior when switching between multiple cameras with different sensor resolution.
Current behavior:
The initial resolution is that of the sensor (or the user commands). When switching camera, we keep the current resolution.
Alternative possible behavior:
- Have a flag
_user_specified_window_size
set tofalse
when the scene is loaded - Set this flag to
true
when the user resize the window - When changing camera:
- Change the window size if the flag is set to
false
- Change the sensor size to fit the viewport if the flag is set to
true
- Change the window size if the flag is set to