Skip to content

Commit 15b9e7c

Browse files
committed
Merge pull request godotengine#89841 from timothyqiu/double-decker
Fix wrong values displayed after duplicating an audio bus
2 parents 10d48d3 + e444ea7 commit 15b9e7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editor/editor_audio_buses.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ EditorAudioBus::EditorAudioBus(EditorAudioBuses *p_buses, bool p_is_master) {
925925
effects->connect("gui_input", callable_mp(this, &EditorAudioBus::_effects_gui_input));
926926

927927
send = memnew(OptionButton);
928+
send->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
928929
send->set_clip_text(true);
929930
send->connect("item_selected", callable_mp(this, &EditorAudioBus::_send_selected));
930931
vb->add_child(send);
@@ -1151,6 +1152,7 @@ void EditorAudioBuses::_duplicate_bus(int p_which) {
11511152
ur->add_do_method(AudioServer::get_singleton(), "add_bus_effect", add_at_pos, AudioServer::get_singleton()->get_bus_effect(p_which, i));
11521153
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));
11531154
}
1155+
ur->add_do_method(this, "_update_bus", add_at_pos);
11541156
ur->add_undo_method(AudioServer::get_singleton(), "remove_bus", add_at_pos);
11551157
ur->commit_action();
11561158
}

0 commit comments

Comments
 (0)