Update Inspector when changing AudioEffectChorus voice_count
Fixes #31627.
(cherry picked from commit 65975b9a08
)
This commit is contained in:
parent
59b82e1b6a
commit
b8354a45bd
1 changed files with 1 additions and 1 deletions
|
@ -325,7 +325,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::REAL, "dry", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_dry", "get_dry");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::REAL, "wet", PROPERTY_HINT_RANGE, "0,1,0.01"), "set_wet", "get_wet");
|
||||
|
||||
|
|
Loading…
Reference in a new issue