From eaea4255dff0def5e2c837db07af072be8aa2d21 Mon Sep 17 00:00:00 2001 From: polygonboutique Date: Wed, 30 Nov 2016 09:19:35 +0100 Subject: [PATCH] fixed tmpQuat --- src/game-lib-component-entity-parent.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game-lib-component-entity-parent.js b/src/game-lib-component-entity-parent.js index 6ecfd92..0706dbc 100644 --- a/src/game-lib-component-entity-parent.js +++ b/src/game-lib-component-entity-parent.js @@ -28,9 +28,9 @@ GameLib.D3.ComponentEntityParent = function ComponentEntityParent( //#ifdef RUNTIME__ -if(typeof THREE != "undefined") { +if(typeof THREE !== "undefined") { ComponentEntityParent_TmpVector = new THREE.Vector3(); - ComponentEntityParent_TmpQuaternion = new THREE.Vector3(); + ComponentEntityParent_TmpQuaternion = new THREE.Quaternion(); } ///////////////////////// Methods to override //////////////////////////