You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #58253 from mbrlabs/deselect-3x
This commit is contained in:
@@ -2034,6 +2034,13 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|||||||
return;
|
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")) {
|
if (EditorSettings::get_singleton()->get("editors/3d/navigation/emulate_numpad")) {
|
||||||
const uint32_t code = k->get_scancode();
|
const uint32_t code = k->get_scancode();
|
||||||
if (code >= KEY_0 && code <= KEY_9) {
|
if (code >= KEY_0 && code <= KEY_9) {
|
||||||
|
|||||||
Reference in New Issue
Block a user