Skip to content

Commit

Permalink
skinnedMesh logic correction
Browse files Browse the repository at this point in the history
  • Loading branch information
ehammons11 committed Jan 17, 2024
1 parent c15f23c commit 43584fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/hand-tracking-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ module.exports.Component = registerComponent('hand-tracking-controls', {
var transparent = !(this.data.modelOpacity === 1.0);
if (skinnedMesh) {
this.skinnedMesh.material.color.set(this.data.modelColor);
this.skinnedMesh.material.transparent.set(transparent);
this.skinnedMesh.material.transparent = transparent;
this.skinnedMesh.material.opacity.set(this.data.modelOpacity);
}

Expand Down

0 comments on commit 43584fb

Please sign in to comment.