summaryrefslogtreecommitdiff
path: root/modules/gridmap/grid_map_editor_plugin.cpp
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2018-09-20 11:50:38 +0200
committerJFonS <joan.fonssanchez@gmail.com>2018-09-20 11:50:38 +0200
commit9ffc30699fe87f93da3216105dc06f302dcacd0f (patch)
tree170f7245d09d836d3e713761d66e78cf1a9970d9 /modules/gridmap/grid_map_editor_plugin.cpp
parenta65d9d96ea502f23f01bb2649bbf0e49e0bfe672 (diff)
Fix selection box staying when editing a GridMap
Diffstat (limited to 'modules/gridmap/grid_map_editor_plugin.cpp')
-rw-r--r--modules/gridmap/grid_map_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/grid_map_editor_plugin.cpp b/modules/gridmap/grid_map_editor_plugin.cpp
index e6eaabd9ce..5fdb6a5196 100644
--- a/modules/gridmap/grid_map_editor_plugin.cpp
+++ b/modules/gridmap/grid_map_editor_plugin.cpp
@@ -645,7 +645,7 @@ bool GridMapEditor::forward_spatial_input_event(Camera *p_camera, const Ref<Inpu
}
set_items.clear();
input_action = INPUT_NONE;
- return true;
+ return set_items.size() > 0;
}
if (mb->get_button_index() == BUTTON_LEFT && input_action != INPUT_NONE) {