GLTF. Change material. Skinning not work

Sorry for my English.

I load the model and assign the material. But the object with bones disappears animation. Material tuned skinning = true. What could be the problem?

Code:

var material = new THREE.MeshLambertMaterial({map:moduleTexture.threeTextures[“material_hero”].texture, skinning:true, color: 0xffffff, emissive: 0x000000});

gltf.scene.traverse(function ( object ) {
if(object.isMesh){
object.material = material;
}
});

Try it with SkinnedMesh only. Meaning:

if(object.isSkinnedMesh){
    object.material = material;
}
1 Like