瀏覽代碼

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