Skip to content

Commit

Permalink
Merge pull request #20105 from takahirox/AudioSetFiltersCopy
Browse files Browse the repository at this point in the history
Audio: Copy filters array in setFilters
  • Loading branch information
mrdoob committed Oct 26, 2020
2 parents bf9d23f + 6acad3f commit 956292c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/Audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,12 @@ class Audio extends Object3D {
if ( this._connected === true ) {

this.disconnect();
this.filters = value;
this.filters = value.slice();
this.connect();

} else {

this.filters = value;
this.filters = value.slice();

}

Expand Down

0 comments on commit 956292c

Please sign in to comment.