From 5fba42d8bdd81fff12076cceebd5dbc2c781be72 Mon Sep 17 00:00:00 2001 From: Stefan Eckert Date: Sun, 6 Oct 2019 12:05:22 +0200 Subject: [PATCH] fix(playcanvas): fix typo in multiply --- src/adapter/playcanvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapter/playcanvas.js b/src/adapter/playcanvas.js index 63b0b1a9..02944b77 100644 --- a/src/adapter/playcanvas.js +++ b/src/adapter/playcanvas.js @@ -88,7 +88,7 @@ export function hijackPlayCanvas(pc) { }; Quat.prototype.multiply = function (other, y, z, w) { - if (other && typeof other.z === 'number') { + if (other && typeof other.w === 'number') { return this.multiplyQuaternion(other); } return this.multiplyQuaternion(pc.quat(other, y, z, w));