Procházet zdrojové kódy

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 před 8 roky
rodič
revize
7a3b8ba129
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.