Merge pull request #58253 from mbrlabs/deselect-3x

This commit is contained in:
Rémi Verschelde 2022-02-17 20:32:38 +01:00 committed by GitHub
commit e2287a201a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2034,6 +2034,13 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
return;
}
if (_edit.mode == TRANSFORM_NONE && !cursor.region_select) {
if (k->get_scancode() == KEY_ESCAPE) {
_clear_selected();
return;
}
}
if (EditorSettings::get_singleton()->get("editors/3d/navigation/emulate_numpad")) {
const uint32_t code = k->get_scancode();
if (code >= KEY_0 && code <= KEY_9) {