From ccdc3b823f05507424aa2fe0d822c61178385795 Mon Sep 17 00:00:00 2001 From: Xiao Gui Date: Wed, 6 Mar 2024 17:05:00 +0100 Subject: [PATCH] fix translate --- app/src/store/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/store/index.js b/app/src/store/index.js index dece342e..b235d443 100644 --- a/app/src/store/index.js +++ b/app/src/store/index.js @@ -252,12 +252,11 @@ const getStore = ({ user = null, experimentalFeatures = {} } = {}) => new Vuex.S output[13] = nm[1] output[14] = nm[2] - const { mat4 } = window.export_nehuba - mat4.transpose(output, output) + const transform = [0,1,2].map(r => [0,1,2,3].map(c => output[ c * 4 + r ])).reduce((acc, curr) => [...acc, ...curr], []).join(",") pluginUrl.searchParams.set( "transform", - [0,1,2].map(r => [0,1,2,3].map(c => output[ c * 4 + r ])).reduce((acc, curr) => [...acc, ...curr], []).join(",") + transform ) const pluginUrlString = pluginUrl.toString()