summaryrefslogtreecommitdiffhomepage
path: root/editor/camera.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-08 09:04:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-08 09:04:14 +0200
commit22f1e92d16dbf7986977c323c0a2985fead88bfd (patch)
tree0fb1d9de02e3f187eb40f3bfe4763e25c283b45a /editor/camera.cpp
parent3e5b43638dac74a88918fecc139b4533bd1c0643 (diff)
a
Diffstat (limited to 'editor/camera.cpp')
-rw-r--r--editor/camera.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/camera.cpp b/editor/camera.cpp
index 2df3dd20..b43c7af8 100644
--- a/editor/camera.cpp
+++ b/editor/camera.cpp
@@ -53,6 +53,7 @@ void app::reset_camera_offset()
constexpr Vector3d size = TILE_MAX_DIM20d*dTILE_SIZE*-.5;
constexpr auto projected = tile_shader::project(size);
M->shader().set_camera_offset(projected, 0);
+ _z_level = 0;
update_cursor_tile(cursor.pixel);
}