Possible bug cloning lights imported via SceneLoader.LoadAssetContainer

I’m importing a Babylon file using BABYLON.SceneLoader.LoadAssetContainer and container.addAllToScene. When the root object is cloned, I’m seeing the cloned child lights re-enable and become seemingly detached from the expected parent object.

The code will probably explain it better:

Is this a bug in the light cloning or am I doing something wrong?


(I acknowledge this may have nothing to do with LoadAssetContainer.)

@Cedric: Do you have some free cycles to have a look?

Sure! @levere I’ll let you know when I figured it out

1 Like

PR is live Handle missing cloned properties by CedricGuillemet · Pull Request #8104 · BabylonJS/Babylon.js · GitHub


Many thanks.