From 955333445cc1b35646ce60d20f51d2f93539379c Mon Sep 17 00:00:00 2001 From: Stephane Demotte Date: Fri, 15 Mar 2019 10:12:58 -0400 Subject: [PATCH] oups typo --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index b4d14a0..643ebfc 100644 --- a/index.js +++ b/index.js @@ -69,19 +69,19 @@ _gsScope._gsDefine.plugin({ this._addTween(target.scale, "z", target.scale.z, value, property) break case 'rotation': - this._addTween(target.rotation, "x", target.rotation.x, roRadians(value), "rotationX") - this._addTween(target.rotation, "y", target.rotation.y, roRadians(value), "rotationY") - this._addTween(target.rotation, "z", target.rotation.z, roRadians(value), "rotationZ") + this._addTween(target.rotation, "x", target.rotation.x, toRadians(value), "rotationX") + this._addTween(target.rotation, "y", target.rotation.y, toRadians(value), "rotationY") + this._addTween(target.rotation, "z", target.rotation.z, toRadians(value), "rotationZ") this._overwriteProps.push("rotationX", "rotationY", "rotationZ") break case 'rotationX': - this._addTween(target.rotation, "x", target.rotation.x, roRadians(value), property) + this._addTween(target.rotation, "x", target.rotation.x, toRadians(value), property) break case 'rotationY': this._addTween(target.rotation, "y", target.rotation.y, toRadians(value), property) break case 'rotationZ': - this._addTween(target.rotation, "z", target.rotation.z, roRadians(value), property) + this._addTween(target.rotation, "z", target.rotation.z, toRadians(value), property) break default: console.warn('Property "' + property + '" is not supported by the Three Plugin')