Use PROPERTY_USAGE_NONE instead of 0 for no property usage
Also use const more often.
This commit is contained in:
parent
382ddd497a
commit
2508fd0533
39 changed files with 126 additions and 126 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue