Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
nit - early return
  • Loading branch information
dmarcos authored Jul 20, 2023
commit f3be0afc3a031d9219a1ebcdd72677b0839c94f9
5 changes: 2 additions & 3 deletions src/components/hand-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,8 @@ module.exports.Component = registerComponent('hand-controls', {
self.clips = gltf.animations;
el.setObject3D('mesh', mesh);
mesh.traverse(function (object) {
if (object.isMesh) {
object.material.color = new THREE.Color(handColor);
}
if (!object.isMesh) { return; }
object.material.color = new THREE.Color(handColor);
});
mesh.position.set(0, 0, 0);
mesh.rotation.set(handModelOrientationX, 0, handModelOrientationZ);
Expand Down