From 96881ba7b10dbf6de1954c39a05a84cb1d398adc Mon Sep 17 00:00:00 2001
From: Kirill <95088806+kirill-mapper@users.noreply.github.com>
Date: Wed, 15 Jan 2025 21:12:36 +0300
Subject: [PATCH] Fix editing gizmo in 2D Camera

Fixing cases: If in 3D view the camera is below the object gizmo, after switching to 2D we cannot control the object gizmo or it is blocked
---
 CodeWalker.Core/World/Camera.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CodeWalker.Core/World/Camera.cs b/CodeWalker.Core/World/Camera.cs
index efa716da..179ee732 100644
--- a/CodeWalker.Core/World/Camera.cs
+++ b/CodeWalker.Core/World/Camera.cs
@@ -136,7 +136,7 @@ private void UpdateFollow(float elapsed)
                 }
                 LocalLookAt = Vector3.Zero;
                 Position = cpos;
-                //Position.Z = 1000.0f;
+                Position.Z = 1000.0f;
                 ViewDirection = -Vector3.UnitZ;
                 UpDirection = Vector3.UnitY;
             }