You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Deselect nodes in the 3D editor when pressing ESC
This commit is contained in:
@@ -1888,7 +1888,12 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_edit.mode != TRANSFORM_NONE) {
|
if (_edit.mode == TRANSFORM_NONE) {
|
||||||
|
if (k->get_keycode() == Key::ESCAPE && !cursor.region_select) {
|
||||||
|
_clear_selected();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
// We're actively transforming, handle keys specially
|
// We're actively transforming, handle keys specially
|
||||||
TransformPlane new_plane = TRANSFORM_VIEW;
|
TransformPlane new_plane = TRANSFORM_VIEW;
|
||||||
String new_message;
|
String new_message;
|
||||||
|
|||||||
Reference in New Issue
Block a user