Shadow for dynamic import mesh is keep loosing while adding new

Hi,
Here I m facing while adding shadow to dynamic import object. when I add the object to mesh the shadow is fine with the latest object only the rest of the previous objects lose their shadow,

Here in the below code is working in a click function ,

dude is a new import object adding dynamically to the scene. ( the id and name is unique for each new import mesh object )

                dude.receiveShadows = true;

                shadow3d = new BABYLON.ShadowGenerator(1024, SPlight_B);

                shadow3d.addShadowCaster(dude);     

Do you call this line every time you add a new model to the scene? You should create a single instance of ShadowGenerator once, and then add models to this shadow generator instance.

A repro in the playground would be really nice in order to troubleshoot ?

thank u.