Fix EditorAudioBuses not updating when changing to a device with different channels
This commit is contained in:
parent
19f2a188bb
commit
792786b4b7
5 changed files with 56 additions and 7 deletions
|
|
@ -59,6 +59,7 @@ class EditorAudioBus : public PanelContainer {
|
|||
VSlider *slider;
|
||||
|
||||
int cc;
|
||||
static const int CHANNELS_MAX = 4;
|
||||
|
||||
struct {
|
||||
bool prev_active;
|
||||
|
|
@ -68,7 +69,7 @@ class EditorAudioBus : public PanelContainer {
|
|||
|
||||
TextureProgress *vu_l;
|
||||
TextureProgress *vu_r;
|
||||
} channel[4];
|
||||
} channel[CHANNELS_MAX];
|
||||
|
||||
TextureRect *scale;
|
||||
OptionButton *send;
|
||||
|
|
@ -102,6 +103,7 @@ class EditorAudioBus : public PanelContainer {
|
|||
void _effect_selected();
|
||||
void _delete_effect_pressed(int p_option);
|
||||
void _effect_rmb(const Vector2 &p_pos);
|
||||
void _update_visible_channels();
|
||||
|
||||
virtual Variant get_drag_data(const Point2 &p_point);
|
||||
virtual bool can_drop_data(const Point2 &p_point, const Variant &p_data) const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue