Skip to content
Snippets Groups Projects
Commit 17fcf613 authored by joni's avatar joni
Browse files

Fix the check to see if the pose is the same as last time.

parent 3ffb5cb7
No related branches found
No related tags found
No related merge requests found
......@@ -39,9 +39,10 @@ AFRAME.registerComponent("hand-pose", {
if (
!this.networkedAvatar ||
!this.networkedAvatar.data ||
!this.networkedAvatar.data[`${this.id}_hand_pose`] !== this.pose
)
this.networkedAvatar.data[`${this.id}_hand_pose`] === this.pose
) {
return;
}
this.animatePose(NETWORK_POSES[this.pose], NETWORK_POSES[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