Imported Meshes Not Cloning

Hello everyone,

When working with BabylonJS meshes, cloning a parent mesh will automatically clone its submeshes.

However, this is not happening with an imported mesh. In the PG below, each yellow cube clone should have the imported red/green/blue cubes attached.

That’s probably because import is asynchronous and you don’t have yet those imported meshes when cloning. I made a small change and it seem to work now:

1 Like

Excellent, that’s exactly right, thanks! :smiley: :+1: