Merge pull request #22278 from JFonS/fix_21293

Fix selection box staying when editing a GridMap
This commit is contained in:
Rémi Verschelde 2018-09-20 12:45:49 +02:00 committed by GitHub
commit a4f5daca67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {