Skip to content

Commit 04b78fb

Browse files
committed
PositionalAudio: Clean up.
1 parent 147f77f commit 04b78fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/audio/PositionalAudio.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,12 @@ PositionalAudio.prototype = Object.assign( Object.create( Audio.prototype ), {
106106

107107
if ( this.isPlaying === false ) return;
108108

109-
var panner = this.panner;
110109
this.matrixWorld.decompose( position, quaternion, scale );
111110

112111
orientation.set( 0, 0, 1 ).applyQuaternion( quaternion );
113112

113+
var panner = this.panner;
114+
114115
if ( panner.positionX ) {
115116

116117
// code path for Chrome and Firefox (see #14393)

0 commit comments

Comments
 (0)