summaryrefslogtreecommitdiffhomepage
path: root/editor/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/camera.cpp')
-rw-r--r--editor/camera.cpp5
1 files changed, 4 insertions, 1 deletions
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<Vector2i>& 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;
}