diff --git a/model-loader.js b/model-loader.js index e6a1a8c..bbcf896 100644 --- a/model-loader.js +++ b/model-loader.js @@ -192,7 +192,7 @@ const loadModelUrl = async (href, filename = href) => { texture.flipY = false; texture.needsUpdate = true; window.texture = texture; - model.traverse(o => { + model.scene.traverse(o => { if (o.isSkinnedMesh) { o.material.map = texture; }