From f7c6db359b634807f07b4c86acb1b1c77561b103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20de=20Vill=C3=A8le?= <25150288+Thibaulltt@users.noreply.github.com> Date: Wed, 25 Mar 2026 00:55:20 +0100 Subject: [PATCH 1/2] fix(view): fetch fov from JSON files --- src/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.cpp b/src/view.cpp index 575db7c6..6cee9fe7 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -1070,7 +1070,7 @@ void setViewFromJson(std::string jsonData, bool flyTo) { // NOTE: it's important that we do this after the mode/dir settings, as this // lets us do our flight bool viewChanged = false; - if (j.find("fov") == j.end()) { + if (j.find("fov") != j.end()) { newFov = j["fov"]; viewChanged = true; } From a4535be47593ba64723559e2f3888863f46d33cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20de=20Vill=C3=A8le?= <25150288+Thibaulltt@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:33:10 +0100 Subject: [PATCH 2/2] fix: fly to the right FOV. --- src/view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view.cpp b/src/view.cpp index 6cee9fe7..1baed9d3 100644 --- a/src/view.cpp +++ b/src/view.cpp @@ -1088,7 +1088,7 @@ void setViewFromJson(std::string jsonData, bool flyTo) { } if (viewChanged) { if (flyTo) { - startFlightTo(newViewMat, fov); + startFlightTo(newViewMat, newFov); } else { setCameraViewMatrix(newViewMat); fov = newFov;