# Possible bug cloning lights imported via SceneLoader.LoadAssetContainer

**URL:** <https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547>\
**Category:** Bugs\
**Tags:** lighting\
**Created:** [May 4, 2020, 5:00pm UTC](https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547 "2020-05-04T17:00:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![levere](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@levere](https://forum.babylonjs.com/u/levere)\
**Post date:** [May 4, 2020, 5:00pm UTC](https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547/1 "2020-05-04T17:00:47Z")

</div>

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:  
[https://www.babylonjs-playground.com/#7F2PR6#1](https://www.babylonjs-playground.com/#7F2PR6#1)

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

Thanks.

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

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [May 4, 2020, 5:29pm UTC](https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547/2 "2020-05-04T17:29:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 4, 2020, 5:45pm UTC](https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547/3 "2020-05-04T17:45:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [May 5, 2020, 10:12am UTC](https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547/4 "2020-05-05T10:12:59Z")

</div>

PR is live [Handle missing cloned properties by CedricGuillemet · Pull Request #8104 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/8104)

---

<div class="post-metadata">

**Author:** ![levere](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@levere](https://forum.babylonjs.com/u/levere)\
**Post date:** [May 5, 2020, 5:38pm UTC](https://forum.babylonjs.com/t/possible-bug-cloning-lights-imported-via-sceneloader-loadassetcontainer/10547/5 "2020-05-05T17:38:12Z")

</div>

Many thanks.
