Light position changed when exporting to glb in sandbox

I imported a glb file with a light in the sandbox, then exported it to a new glb file( no modification ). When I imported the new file again, I found that the light position changed.

Screenshots
Snipaste_2020-09-22_16-11-40

Desktop:

  • OS: windows 10 professional 1909
  • Browser [chrome]

I suppose the question located at here:

Babylon.js/serializers/src/glTF/2.0/Extensions/KHR_lights_punctual.ts

Line 148 in 15804eb

if (parentNode) {

When I commented out the lines related to the transformations , it seemed to work fine.

I think @Drigax will be able to help.

Do you have a playground that reproduces this? The light local position will change due to reorienting the light to fit glTF’s schema:

However, the world transform of the light should be identical to the original light.