SceneSerializer loses hierarchy

Hi,
after the last update i have notice that instantiated nodes loses the hierarchy after the export of the scene in .babylon format.

I built this playground: https://playground.babylonjs.com/#6U1BYB#1

I used the sandbox for testing the scene import (https://sandbox.babylonjs.com/)

Hi! I’ll take a look rn :smiley:

Just leaving an update, it’s indeed a bug with the way instance parents are serialized :slight_smile: Thanks for catching that, I’m working on a fix! Did you say it worked before the last update? Because the way the code looks, it doesn’t seem it would have worked :thinking:

1 Like

PR Open! Fix serialization when objects have InstancedMesh parents by carolhmj · Pull Request #12690 · BabylonJS/Babylon.js (github.com)

3 Likes

Hi @carolhmj, thank you very much for this fix! :smiley:

1 Like