diff options
author | Nancy Zhang <nancy.zhang143@gmail.com> | 2023-12-06 23:32:40 -0500 |
---|---|---|
committer | Nancy Zhang <nancy.zhang143@gmail.com> | 2023-12-13 12:37:21 -0500 |
commit | cf39cc985bf79bbbfc04b72e85dbbfe42f88c64d (patch) | |
tree | 6af9187ae6540be865b6c1fcf4c0cb3ca7f5cabc | |
parent | 2f73a059cefadcd944b6874f2557ec82e46a562d (diff) | |
download | redot-engine-cf39cc985bf79bbbfc04b72e85dbbfe42f88c64d.tar.gz |
Fix unable to deselect audio effects
-rw-r--r-- | editor/editor_audio_buses.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_audio_buses.cpp b/editor/editor_audio_buses.cpp index f244bc0da8..e173d15747 100644 --- a/editor/editor_audio_buses.cpp +++ b/editor/editor_audio_buses.cpp @@ -912,6 +912,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) { vb->add_child(effects); effects->connect("item_edited", callable_mp(this, &EditorAudioBus::_effect_edited)); effects->connect("cell_selected", callable_mp(this, &EditorAudioBus::_effect_selected)); + effects->connect("focus_exited", callable_mp(effects, &Tree::deselect_all)); effects->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true); SET_DRAG_FORWARDING_GCD(effects, EditorAudioBus); effects->connect("item_mouse_selected", callable_mp(this, &EditorAudioBus::_effect_rmb)); |