prevent zooming when in orthographic perspective

This commit is contained in:
2026-02-27 03:35:54 +01:00
parent 2517a9d33b
commit f512306109
3 changed files with 11 additions and 7 deletions

View File

@ -115,7 +115,8 @@ auto InputHandler::CameraRotate() -> void {
auto InputHandler::CameraStopRotate() -> void { camera_rotating = false; }
auto InputHandler::CameraZoom() -> void {
if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL)) {
if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL) ||
camera.projection == CAMERA_ORTHOGRAPHIC) {
return;
}