Fixed Voice_Count issues in AudioEffectChorus:

- Setting voice_count value to 4 (MAX_VOICES) is now allowed
- Fixed slider glitch on setting voice_count value
This commit is contained in:
Indah Sylvia 2017-09-25 20:39:41 +07:00
parent 09800ac650
commit ffca222d17
1 changed files with 1 additions and 2 deletions

View File

@ -182,9 +182,8 @@ Ref<AudioEffectInstance> AudioEffectChorus::instance() {
void AudioEffectChorus::set_voice_count(int p_voices) {
ERR_FAIL_COND(p_voices < 1 || p_voices >= MAX_VOICES);
ERR_FAIL_COND(p_voices < 1 || p_voices > MAX_VOICES);
voice_count = p_voices;
_change_notify();
}
int AudioEffectChorus::get_voice_count() const {