summaryrefslogtreecommitdiffhomepage
path: root/editor/scenery-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/scenery-editor.cpp
parent9236dae6b3357c83de469947add0bf9c169367c5 (diff)
editor: only show cursor when placing something
Diffstat (limited to 'editor/scenery-editor.cpp')
-rw-r--r--editor/scenery-editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp
index 612bfb78..dd7ca563 100644
--- a/editor/scenery-editor.cpp
+++ b/editor/scenery-editor.cpp
@@ -64,4 +64,9 @@ bool scenery_editor::is_item_selected(const scenery_& s) const
return s.name == _selected.name && s.proto.atlas == _selected.proto.atlas;
}
+bool scenery_editor::is_anything_selected() const
+{
+ return _selected.proto.atlas != nullptr;
+}
+
} // namespace floormat