AudioServer emit bus_layout_changed signal when adding, moving or deleting a bus
(cherry picked from commit 56dcf4b983
)
This commit is contained in:
parent
df7d60a9d3
commit
5e8e2a8730
1 changed files with 6 additions and 0 deletions
|
@ -518,6 +518,8 @@ void AudioServer::remove_bus(int p_index) {
|
||||||
memdelete(buses[p_index]);
|
memdelete(buses[p_index]);
|
||||||
buses.remove(p_index);
|
buses.remove(p_index);
|
||||||
unlock();
|
unlock();
|
||||||
|
|
||||||
|
emit_signal("bus_layout_changed");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioServer::add_bus(int p_at_pos) {
|
void AudioServer::add_bus(int p_at_pos) {
|
||||||
|
@ -571,6 +573,8 @@ void AudioServer::add_bus(int p_at_pos) {
|
||||||
buses.push_back(bus);
|
buses.push_back(bus);
|
||||||
else
|
else
|
||||||
buses.insert(p_at_pos, bus);
|
buses.insert(p_at_pos, bus);
|
||||||
|
|
||||||
|
emit_signal("bus_layout_changed");
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioServer::move_bus(int p_bus, int p_to_pos) {
|
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 {
|
} else {
|
||||||
buses.insert(p_to_pos - 1, bus);
|
buses.insert(p_to_pos - 1, bus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit_signal("bus_layout_changed");
|
||||||
}
|
}
|
||||||
|
|
||||||
int AudioServer::get_bus_count() const {
|
int AudioServer::get_bus_count() const {
|
||||||
|
|
Loading…
Reference in a new issue