未验证 提交 6f9b2b3c 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15424 from Artyom17/dev

PositionalAudio: Skip updating WebAudio API when audio is not playing.
......@@ -104,6 +104,12 @@ PositionalAudio.prototype = Object.assign( Object.create( Audio.prototype ), {
Object3D.prototype.updateMatrixWorld.call( this, force );
if ( ! this.isPlaying ) {
return;
}
var panner = this.panner;
this.matrixWorld.decompose( position, quaternion, scale );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册