summaryrefslogtreecommitdiffhomepage
path: root/editor/tile-editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-28 18:55:55 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-28 18:55:55 +0100
commit16911b659ac6555ada2ddec560eb82c8dd7b910f (patch)
treeaa46734355b1b0029f56e80f683234210598cd10 /editor/tile-editor.cpp
parent9236dae6b3357c83de469947add0bf9c169367c5 (diff)
editor: only show cursor when placing something
Diffstat (limited to 'editor/tile-editor.cpp')
-rw-r--r--editor/tile-editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/tile-editor.cpp b/editor/tile-editor.cpp
index d944f47f..d5743220 100644
--- a/editor/tile-editor.cpp
+++ b/editor/tile-editor.cpp
@@ -93,6 +93,11 @@ bool tile_editor::is_atlas_selected(const std::shared_ptr<const tile_atlas>& atl
}
}
+bool tile_editor::is_anything_selected() const
+{
+ return _selection_mode != sel_none;
+}
+
template<std::random_access_iterator T>
void fisher_yates(T begin, T end)
{