diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-20 12:45:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-20 12:45:49 +0200 |
commit | a4f5daca67760daf40e0867c8b530ab085f62a71 (patch) | |
tree | 472d7e9d2631c8b71166bda8a6fe0466a040050a | |
parent | cbe444ff1884a7f81b4b4a326e143cf097a65dd0 (diff) | |
parent | 9ffc30699fe87f93da3216105dc06f302dcacd0f (diff) |
Merge pull request #22278 from JFonS/fix_21293
Fix selection box staying when editing a GridMap
-rw-r--r-- | modules/gridmap/grid_map_editor_plugin.cpp | 2 |
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) { |