summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index ea3e554a..567b10e6 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -46,7 +46,10 @@ void app::do_mouse_up_down(std::uint8_t button, bool is_down, int mods)
if (cursor.tile && !cursor.in_imgui && button == mouse_button_left && is_down)
_editor.on_click(M->world(), *cursor.tile, mods);
else
+ {
_editor.on_release();
+ update_cursor_tile(cursor.pixel);
+ }
}
void app::do_key(key k, int mods)