Skip to content

Commit 59c923a

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

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/audio/PositionalAudio.js

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

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

107+
if ( ! this.isPlaying ) {
108+
109+
return;
110+
111+
}
112+
107113
var panner = this.panner;
108114
this.matrixWorld.decompose( position, quaternion, scale );
109115

0 commit comments

Comments
 (0)