Skip to content

Commit

Permalink
Merge pull request #58253 from mbrlabs/deselect-3x
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Feb 17, 2022
2 parents 453dc48 + 67b879e commit e2287a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editor/plugins/spatial_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e2287a2

Please sign in to comment.