Преглед на файлове

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 години
родител
ревизия
7a3b8ba129
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.
          * 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.
          * Returns the AbstractMesh.