Wrong argument type when cloning an instanced mesh without a parent

Hello,

I noticed that when cloning an InstancedMesh, the method description says that the second argument is newParent (optional Node), which is how it works for Mesh too. In the definition of the method in TypeScript however, newParent is not optional, so TS is complaining when cloning instances without setting a parent.

In the implementation of the method it is checked if newParent exists so it is indeed optional, just the type in the method definition is wrong.

Welcome on the forum !!!

Thanks for the good find, I ll fix it ASAP: Fix instance mesh clone definition by sebavan · Pull Request #6649 · BabylonJS/Babylon.js · GitHub

It will be in the next nightly