Переглянути джерело

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
         };
     }
-}
+}