Fix wrong values displayed after duplicating an audio bus
Also mark "send" bus dropdown untranslatable.
This commit is contained in:
parent
99ff024f78
commit
e444ea717c
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue