I’m working on a scene with Blender that I export to gltf (with lights).
In Blender, I have a directional light (Spot) with “Cast Shadow
” opt-in in the panel.

When importing the gltf into my threejs scene, it’s like the “Cast Shadow” Blender option was not preserved and I have to manually traverse the objects tree to find and re-enabled it manually:
scene.traverse(n => {
if (n.isLight) {
n.castShadow = true // why I have to re-enable this?
}
})
Do you know if this is intented?
Thank you