# Double \_\_root\_\_ when saving out glb from sandbox

**URL:** <https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608>\
**Category:** Bugs\
**Created:** [April 16, 2019, 6:28am UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608 "2019-04-16T06:28:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/leon/32/30387_2.png) [@Leon](https://forum.babylonjs.com/u/Leon)\
**Post date:** [April 16, 2019, 6:28am UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608/1 "2019-04-16T06:28:03Z")

</div>

Hi!

We use the sandbox to tweak materials on a glb, but then when we click the export glb, it produces a glb that contains double **root** nodes.

![00](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/2/26e1e1c99b6744aefadc8a350aac15d5f4814f76.png)

---

<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:** [April 16, 2019, 1:41pm UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608/2 "2019-04-16T13:41:16Z")

</div>

Pinging @bghgary

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [April 16, 2019, 8:17pm UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608/3 "2019-04-16T20:17:44Z")

</div>

This one is tricky. The loader adds a ` __root__ ` node for every glTF model that is imported since glTF can have more than one root and is right-handed. When exported, the ` __root__ ` node gets exported as well. We can perhaps fix this by removing this node when serializing the glTF if we detect that it is unnecessary. Can you file an issue on this on GitHub and we can look into it? It might be after 4.0 is released if that’s okay.

---

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [May 14, 2019, 7:06pm UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608/4 "2019-05-14T19:06:12Z")

</div>

Hi.  
I didn’t find the issue on git. Can I add it?  
I’m haveing the same problem with gltf files if I’m using GLBAsync function on gltf files. I think is the same function used in sandbox.

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [May 14, 2019, 8:00pm UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608/5 "2019-05-14T20:00:10Z")

</div>

Yes, please.

---

<div class="post-metadata">

**Author:** ![MarianG](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mariang/32/138_2.png) [@MarianG](https://forum.babylonjs.com/u/MarianG)\
**Post date:** [May 15, 2019, 7:14pm UTC](https://forum.babylonjs.com/t/double-root-when-saving-out-glb-from-sandbox/2608/6 "2019-05-15T19:14:27Z")

</div>

> <https://github.com/BabylonJS/Babylon.js/issues/6349>
