浏览代码

TransformNode as spatial sound source fix [lint]

Poolminer 5 年之前
父节点
当前提交
5e2baeefc3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Audio/sound.ts

+ 1 - 1
src/Audio/sound.ts

@@ -942,7 +942,7 @@ export class Sound {
             this.setPosition(TmpVectors.Matrix[0].getTranslation());
             this.setPosition(TmpVectors.Matrix[0].getTranslation());
         }
         }
         else {
         else {
-            if(!(<any>node).getBoundingInfo){
+            if (!(<any>node).getBoundingInfo) {
                 this.setPosition(node.position);
                 this.setPosition(node.position);
             } else {
             } else {
                 let mesh = node as AbstractMesh;
                 let mesh = node as AbstractMesh;