Load *.glb, Cannot read properties of undefined (reading 'asset')

Hi, Everybody,
When I load a GLB file, I encounter this problem. Have you met it?

Unable to load from ./models/RobotExpressive.glb: Cannot read properties of undefined (reading ‘asset’)

Can you repro in the playground ?

and are you loading the loaders scripts?




BABYLON.SceneLoader.ImportMesh(

    ["nav-robat"],

    "./models/",

    "RobotExpressive.glb",

    scene,

    function (meshes, particleSystems, skeletons) {

   

      // // Create a default arc rotate camera and light.

      // scene.createDefaultCameraOrLight(true, true, true);

      // // The default camera looks at the back of the asset.

      // // Rotate the camera by 180 degrees to the front of the asset.

      // if (scene.activeCamera) (<any>scene.activeCamera).alpha += Math.PI;

      console.log(meshes);

    },

    (progress) => {

      console.log(progress.loaded);

    },

    (scene, error) => {

      console.log("error: ", error);

    }

  );

The code is nice but we would really benefit from a repro here : https://playground.babylonjs.com/

Hello @hisoka.xiang just checking in, are you still having issues?