Skip to content

Commit

Permalink
Merge pull request #89841 from timothyqiu/double-decker
Browse files Browse the repository at this point in the history
Fix wrong values displayed after duplicating an audio bus
  • Loading branch information
akien-mga committed Apr 8, 2024
2 parents 10d48d3 + e444ea7 commit 15b9e7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/editor_audio_buses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) {
effects->connect("gui_input", callable_mp(this, &EditorAudioBus::_effects_gui_input));

send = memnew(OptionButton);
send->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
send->set_clip_text(true);
send->connect("item_selected", callable_mp(this, &EditorAudioBus::_send_selected));
vb->add_child(send);
Expand Down Expand Up @@ -1151,6 +1152,7 @@ void EditorAudioBuses::_duplicate_bus(int p_which) {
ur->add_do_method(AudioServer::get_singleton(), "add_bus_effect", add_at_pos, AudioServer::get_singleton()->get_bus_effect(p_which, i));
ur->add_do_method(AudioServer::get_singleton(), "set_bus_effect_enabled", add_at_pos, i, AudioServer::get_singleton()->is_bus_effect_enabled(p_which, i));
}
ur->add_do_method(this, "_update_bus", add_at_pos);
ur->add_undo_method(AudioServer::get_singleton(), "remove_bus", add_at_pos);
ur->commit_action();
}
Expand Down

0 comments on commit 15b9e7c

Please sign in to comment.