Browse Source

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

Indah Sylvia 8 years ago
parent
commit
ffca222d17
1 changed files with 1 additions and 2 deletions
  1. 1 2
      servers/audio/effects/audio_effect_chorus.cpp

+ 1 - 2
servers/audio/effects/audio_effect_chorus.cpp

@@ -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 {