[Fix]: Corrected camera's projection when engine idle reconnects (#7173)

* fix: implemented a fix to read from settings before restoring camera view and log if it desyncs

* fix: reverting testing code

* fix: always enable ortho scale enabled mode

* fix: fixed the ortho_scale_enabled boolean, do not touch it. Set it to true and never touch it again
This commit is contained in:
Kevin Nadro
2025-05-23 16:30:05 -05:00
committed by GitHub
parent 08dfaba7f7
commit 30bd307931
3 changed files with 52 additions and 1 deletions

View File

@ -648,7 +648,8 @@ export async function engineViewIsometricWithoutGeometryPresent({
fov_y: 45,
ortho_scale_factor: 1.4063792,
is_ortho: cameraProjection !== 'perspective',
ortho_scale_enabled: cameraProjection !== 'perspective',
// always keep this enabled
ortho_scale_enabled: true,
world_coord_system: 'right_handed_up_z',
}
await engineCommandManager.sendSceneCommand({