From d17ed6b4ba01a73d33e3ff3ca8f0f6fb25259223 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Apr 2023 10:06:12 +0200 Subject: a --- editor/camera.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'editor/camera.cpp') diff --git a/editor/camera.cpp b/editor/camera.cpp index b43c7af8..f018ad8c 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -61,7 +61,10 @@ void app::update_cursor_tile(const Optional& pixel) { cursor.pixel = pixel; if (pixel) - cursor.tile = M->pixel_to_tile(Vector2d{*pixel}); + { + auto coord = M->pixel_to_tile(Vector2d{*pixel}); + cursor.tile = {InPlaceInit, coord.chunk(), coord.local(), _z_level}; + } else cursor.tile = NullOpt; } -- cgit v1.2.3