Skip to content
Snippets Groups Projects
Unverified Commit aaf8eab2 authored by Brian Peiris's avatar Brian Peiris Committed by GitHub
Browse files

Merge pull request #260 from mozilla/bug/hand-pose-equality-check-reversed

Fix the check to see if the pose is the same as last time.
parents 228b46d6 17fcf613
No related branches found
No related tags found
No related merge requests found
...@@ -39,9 +39,10 @@ AFRAME.registerComponent("hand-pose", { ...@@ -39,9 +39,10 @@ AFRAME.registerComponent("hand-pose", {
if ( if (
!this.networkedAvatar || !this.networkedAvatar ||
!this.networkedAvatar.data || !this.networkedAvatar.data ||
!this.networkedAvatar.data[`${this.id}_hand_pose`] !== this.pose this.networkedAvatar.data[`${this.id}_hand_pose`] === this.pose
) ) {
return; return;
}
this.animatePose(NETWORK_POSES[this.pose], NETWORK_POSES[this.networkedAvatar.data[`${this.id}_hand_pose`]]); this.animatePose(NETWORK_POSES[this.pose], NETWORK_POSES[this.networkedAvatar.data[`${this.id}_hand_pose`]]);
this.pose = this.networkedAvatar.data[`${this.id}_hand_pose`]; this.pose = this.networkedAvatar.data[`${this.id}_hand_pose`];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment