diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-28 18:55:55 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-28 18:55:55 +0100 |
commit | 16911b659ac6555ada2ddec560eb82c8dd7b910f (patch) | |
tree | aa46734355b1b0029f56e80f683234210598cd10 /editor/tile-editor.cpp | |
parent | 9236dae6b3357c83de469947add0bf9c169367c5 (diff) |
editor: only show cursor when placing something
Diffstat (limited to 'editor/tile-editor.cpp')
-rw-r--r-- | editor/tile-editor.cpp | 5 |
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) { |