repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 92f33d114a6a2e40315cdfed9542452406cb83fa:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 92f33d114a6a2e40315cdfed9542452406cb83fa
Author: James Baicoianu 
Date:   Sun Oct 31 01:43:50 2021 -0700

    Fixed deprecated quaternion SLERP call

diff --git a/scripts/janusxrplayer.js b/scripts/janusxrplayer.js
index 7791ff05e157e9bb2d6a8eb80d7c8ed98a5c1180..
index ..1c342ab14aca5bb3437e9c3351f8289ff57c48ee 100644
--- a/scripts/janusxrplayer.js
+++ b/scripts/janusxrplayer.js
@@ -316,10 +316,9 @@ elation.require(['engine.things.generic', 'janusweb.external.webxr-input-profile
               const minNode = motionControllerRoot.getObjectByName(visualResponse.minNodeName);
               const maxNode = motionControllerRoot.getObjectByName(visualResponse.maxNodeName);

-              THREE.Quaternion.slerp(
+              valueNode.quaternion.slerp(
                 minNode.quaternion,
                 maxNode.quaternion,
-                valueNode.quaternion,
                 visualResponse.value
               );

-----END OF PAGE-----