From 2d36849b375e613d4074abe06aa61819031f4d7c Mon Sep 17 00:00:00 2001 From: Quicksticks-oss Date: Sat, 6 Apr 2024 03:48:38 -0400 Subject: [PATCH] Quick fix for characters shrinking to 0, 0, 0 due to react influence. --- app/pages/PageEnigma/js/editor.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/pages/PageEnigma/js/editor.ts b/app/pages/PageEnigma/js/editor.ts index a8f0839986..3157dc7052 100644 --- a/app/pages/PageEnigma/js/editor.ts +++ b/app/pages/PageEnigma/js/editor.ts @@ -1211,19 +1211,19 @@ class Editor { version: this.version, objectVectors: { position: { - x: parseFloat(pos.x.toFixed(2)), - y: parseFloat(pos.y.toFixed(2)), - z: parseFloat(pos.z.toFixed(2)), + x: parseFloat(pos.x.toFixed(6)), + y: parseFloat(pos.y.toFixed(6)), + z: parseFloat(pos.z.toFixed(6)), }, rotation: { - x: parseFloat(rot.x.toFixed(2)), - y: parseFloat(rot.y.toFixed(2)), - z: parseFloat(rot.z.toFixed(2)), + x: parseFloat(rot.x.toFixed(6)), + y: parseFloat(rot.y.toFixed(6)), + z: parseFloat(rot.z.toFixed(6)), }, scale: { - x: parseFloat(scale.x.toFixed(2)), - y: parseFloat(scale.y.toFixed(2)), - z: parseFloat(scale.z.toFixed(2)), + x: parseFloat(scale.x.toFixed(6)), + y: parseFloat(scale.y.toFixed(6)), + z: parseFloat(scale.z.toFixed(6)), }, }, },