Skip to content

Commit 701477d

Browse files
committed
Fix bug when loading hand controls model and accessing the material. Introduced after bumping THREE to r152
1 parent ac9236b commit 701477d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/hand-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ module.exports.Component = registerComponent('hand-controls', {
206206
self.clips = gltf.animations;
207207
el.setObject3D('mesh', mesh);
208208

209-
var handMaterial = mesh.children[1].material;
209+
var handMaterial = mesh.children[0].material;
210210
handMaterial.color = new THREE.Color(handColor);
211211
mesh.position.set(0, 0, 0);
212212
mesh.rotation.set(handModelOrientationX, 0, handModelOrientationZ);

0 commit comments

Comments
 (0)