Skip to content

Commit

Permalink
2775: Clamp ortho camera zoom factor. (#2784)
Browse files Browse the repository at this point in the history
  • Loading branch information
kduske authored and ericwa committed May 27, 2019
1 parent 926f004 commit 2513781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/Renderer/Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ namespace TrenchBroom {
}

bool Camera::isValidZoom(const float zoom) const {
return true;
return zoom >= 0.02f && zoom <= 100.0f;
}
}
}

0 comments on commit 2513781

Please sign in to comment.