Parcourir la source

Fix instance mesh clone definition

sebavan il y a 6 ans
Parent
commit
a2b4b172c5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/Meshes/instancedMesh.ts

+ 1 - 1
src/Meshes/instancedMesh.ts

@@ -369,7 +369,7 @@ export class InstancedMesh extends AbstractMesh {
      *
      * Returns the clone.
      */
-    public clone(name: string, newParent: Node, doNotCloneChildren?: boolean): InstancedMesh {
+    public clone(name: string, newParent?: Node, doNotCloneChildren?: boolean): InstancedMesh {
         var result = this._sourceMesh.createInstance(name);
 
         // Deep copy