Skip to content

Commit 56af2b7

Browse files
Artem BolgarArtem Bolgar
authored andcommitted
Workaround for #15422
1 parent 96ca78e commit 56af2b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/audio/PositionalAudio.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ PositionalAudio.prototype = Object.assign( Object.create( Audio.prototype ), {
104104

105105
Object3D.prototype.updateMatrixWorld.call( this, force );
106106

107+
if ( !this.isPlaying ) {
108+
return;
109+
}
110+
107111
var panner = this.panner;
108112
this.matrixWorld.decompose( position, quaternion, scale );
109113

0 commit comments

Comments
 (0)