From 17fcf613177b53df894f3b715b9e612f31e7f812 Mon Sep 17 00:00:00 2001 From: joni <johnfshaughnessy@gmail.com> Date: Mon, 23 Apr 2018 20:26:06 -0700 Subject: [PATCH] Fix the check to see if the pose is the same as last time. --- src/components/hand-poses.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/hand-poses.js b/src/components/hand-poses.js index b41661c37..7a0f9a4d2 100644 --- a/src/components/hand-poses.js +++ b/src/components/hand-poses.js @@ -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`]; -- GitLab