diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-25 17:50:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 17:50:00 +0100 |
commit | 9e24ad5a3f7ede1a4718c948cf17741de7950a93 (patch) | |
tree | 909ce3bb31a8b7bacd119e18800c47976d8b9a8f | |
parent | 5d8025ec661a1ae12c8b15e198018187c9542a1f (diff) | |
parent | 65975b9a08b9cb648ce8dd4c74b0e658709ac8b1 (diff) |
Merge pull request #41575 from kotelifelif/31627
Chorus effect inspector update voices automatically
-rw-r--r-- | servers/audio/effects/audio_effect_chorus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp index 76a995eb37..eb2268aa2e 100644 --- a/servers/audio/effects/audio_effect_chorus.cpp +++ b/servers/audio/effects/audio_effect_chorus.cpp @@ -309,7 +309,7 @@ void AudioEffectChorus::_bind_methods() { ClassDB::bind_method(D_METHOD("set_dry", "amount"), &AudioEffectChorus::set_dry); ClassDB::bind_method(D_METHOD("get_dry"), &AudioEffectChorus::get_dry); - ADD_PROPERTY(PropertyInfo(Variant::INT, "voice_count", PROPERTY_HINT_RANGE, "1,4,1"), "set_voice_count", "get_voice_count"); + ADD_PROPERTY(PropertyInfo(Variant::INT, "voice_count", PROPERTY_HINT_RANGE, "1,4,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED), "set_voice_count", "get_voice_count"); ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "dry", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_dry", "get_dry"); ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "wet", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_wet", "get_wet"); |