Browse Source

Update babylon.d.ts

BABYLON.AbstractMesh.clone() method's "newParent: Node" argument made optional to match the documentation. Previously it was required, and the TypeScript compiler enforced a Node type be passed when cloning an AbstractMesh.
glenngartner 8 years ago
parent
commit
7a3b8ba129
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dist/babylon.d.ts

+ 1 - 1
dist/babylon.d.ts

@@ -9169,7 +9169,7 @@ declare module BABYLON {
          * Clones the mesh, used by the class Mesh.
          * Clones the mesh, used by the class Mesh.
          * Just returns `null` for an AbstractMesh.
          * Just returns `null` for an AbstractMesh.
          */
          */
-        clone(name: string, newParent: Node, doNotCloneChildren?: boolean): AbstractMesh;
+        clone(name: string, newParent?: Node, doNotCloneChildren?: boolean): AbstractMesh;
         /**
         /**
          * Disposes all the mesh submeshes.
          * Disposes all the mesh submeshes.
          * Returns the AbstractMesh.
          * Returns the AbstractMesh.