We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcbaedb commit 59da72dCopy full SHA for 59da72d
1 file changed
src/view.cpp
@@ -1070,7 +1070,7 @@ void setViewFromJson(std::string jsonData, bool flyTo) {
1070
// NOTE: it's important that we do this after the mode/dir settings, as this
1071
// lets us do our flight
1072
bool viewChanged = false;
1073
- if (j.find("fov") == j.end()) {
+ if (j.find("fov") != j.end()) {
1074
newFov = j["fov"];
1075
viewChanged = true;
1076
}
@@ -1088,7 +1088,7 @@ void setViewFromJson(std::string jsonData, bool flyTo) {
1088
1089
if (viewChanged) {
1090
if (flyTo) {
1091
- startFlightTo(newViewMat, fov);
+ startFlightTo(newViewMat, newFov);
1092
} else {
1093
setCameraViewMatrix(newViewMat);
1094
fov = newFov;
0 commit comments