Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
Expand Down