How to add shadows to imported child meshes?

I think I have narrowed down the issue somewhat. The issue is in the other project where I have 53 meshes that I want the shadows.

Looking in the Nodes and root I have this.

If I try to remove the root using the method shown at 3.49 in the video here Thin Instances | Babylon.js Documentation (babylonjs.com) I only have the “Nut” mesh left in my scene… Every other mesh is removed.

If I do like this:

var plate1 = result.meshes[0];

var children = plate1.getChildMeshes();
for(let i = 0; i < children.length; i++) {
shadowGenerator.addShadowCaster(children[i]);
}

children.receiveShadows = true;

I only get shadows on some of the meshes, and the “child” meshes does not cast shadows on each other… (Red = no shadows casted on each other, Blue = Shadows are casted from some meshes.)

But “console.log(children);”

gives me all the meshes (but in an Array?). How do I give meshes in an Array shadows since the above does not work?

Ps. I have also tried to restructure things in my .blend file before exporting the .glb, but that doesn’t seem to do anything regarding my issue.