ソースを参照

Update src/node.ts

Co-Authored-By: TrevorDev <trevorjbaron@gmail.com>
Gary Hsu 6 年 前
コミット
a4e2c675b3
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/node.ts

+ 2 - 2
src/node.ts

@@ -795,7 +795,7 @@ export class Node implements IBehaviorAware<Node> {
         let min: Vector3;
         let max: Vector3;
 
-        let thisAbstractMesh = ((this as any) as AbstractMesh);
+        let thisAbstractMesh = (this as Node as AbstractMesh);
         if (thisAbstractMesh.getBoundingInfo && thisAbstractMesh.subMeshes) {
             // If this is an abstract mesh get its bounding info
             let boundingInfo = thisAbstractMesh.getBoundingInfo();
@@ -839,4 +839,4 @@ export class Node implements IBehaviorAware<Node> {
             max: max
         };
     }
-}
+}