diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2018-03-16 00:10:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 00:10:52 +0100 |
commit | 395ecc2235f91654ef7c06c7e73aabb352bb17fb (patch) | |
tree | 316f0ddc175a881f262bd4d036ed5b0b5bc9b300 | |
parent | bb331d85b8a2200207e36a7a41b2cb0c88b438a2 (diff) | |
parent | 56dcf4b983efd201d92fcdac9348042d39213622 (diff) |
Merge pull request #16964 from mrcdk/audio_server_bus_changed_fix
AudioServer emit bus_layout_changed signal when adding, moving or del…
-rw-r--r-- | servers/audio_server.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/audio_server.cpp b/servers/audio_server.cpp index 783788a6a1..a030871754 100644 --- a/servers/audio_server.cpp +++ b/servers/audio_server.cpp @@ -518,6 +518,8 @@ void AudioServer::remove_bus(int p_index) { memdelete(buses[p_index]); buses.remove(p_index); unlock(); + + emit_signal("bus_layout_changed"); } void AudioServer::add_bus(int p_at_pos) { @@ -571,6 +573,8 @@ void AudioServer::add_bus(int p_at_pos) { buses.push_back(bus); else buses.insert(p_at_pos, bus); + + emit_signal("bus_layout_changed"); } void AudioServer::move_bus(int p_bus, int p_to_pos) { @@ -593,6 +597,8 @@ void AudioServer::move_bus(int p_bus, int p_to_pos) { } else { buses.insert(p_to_pos - 1, bus); } + + emit_signal("bus_layout_changed"); } int AudioServer::get_bus_count() const { |