diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-01 21:29:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 21:29:32 +0200 |
commit | 022640a8fd31428d7018da2626e2367b64caffe9 (patch) | |
tree | d0d0661e69f743670071d51544b2027d3fc1dbb9 /servers/audio | |
parent | 382ddd497a732812356fccbe9642d86848a4da9d (diff) | |
parent | 2508fd05334c1766bb1ea9c1cd4be4cfcbf7c90d (diff) |
Merge pull request #50041 from aaronfranke/prop-usage-flags
Use `PROPERTY_USAGE_NONE` instead of `0` for no property usage
Diffstat (limited to 'servers/audio')
-rw-r--r-- | servers/audio/effects/audio_effect_chorus.cpp | 2 | ||||
-rw-r--r-- | servers/audio/effects/audio_effect_filter.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp index 54cd5ed0bf..9af3ed30cc 100644 --- a/servers/audio/effects/audio_effect_chorus.cpp +++ b/servers/audio/effects/audio_effect_chorus.cpp @@ -276,7 +276,7 @@ void AudioEffectChorus::_validate_property(PropertyInfo &property) const { if (property.name.begins_with("voice/")) { int voice_idx = property.name.get_slice("/", 1).to_int(); if (voice_idx > voice_count) { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } } } diff --git a/servers/audio/effects/audio_effect_filter.h b/servers/audio/effects/audio_effect_filter.h index 9aab97da29..1fa3df1570 100644 --- a/servers/audio/effects/audio_effect_filter.h +++ b/servers/audio/effects/audio_effect_filter.h @@ -100,7 +100,7 @@ class AudioEffectLowPassFilter : public AudioEffectFilter { void _validate_property(PropertyInfo &property) const override { if (property.name == "gain") { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } } @@ -113,7 +113,7 @@ class AudioEffectHighPassFilter : public AudioEffectFilter { GDCLASS(AudioEffectHighPassFilter, AudioEffectFilter); void _validate_property(PropertyInfo &property) const override { if (property.name == "gain") { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } } @@ -126,7 +126,7 @@ class AudioEffectBandPassFilter : public AudioEffectFilter { GDCLASS(AudioEffectBandPassFilter, AudioEffectFilter); void _validate_property(PropertyInfo &property) const override { if (property.name == "gain") { - property.usage = 0; + property.usage = PROPERTY_USAGE_NONE; } } |