From efb345a3198a0527302cba7180e908bc296fb94d Mon Sep 17 00:00:00 2001 From: Lucio Zambon <lucio.zambon@elettra.eu> Date: Fri, 6 Dec 2024 15:26:28 +0000 Subject: [PATCH] Update panther.js --- panther.js | 1 + 1 file changed, 1 insertion(+) diff --git a/panther.js b/panther.js index 88a8de3..e0caa1a 100644 --- a/panther.js +++ b/panther.js @@ -528,6 +528,7 @@ import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js'; if (id[1]) {window.names.push(id[1]); alias.push(id);} mycomp.magnetType = magnet; mycomp.name = myname; + if (direction>0) mycomp.rotateY(Math.PI); compBuffer[magnet][l].name = mycomp.name; if (m>-1 && lattice[facility].sections[i].components[m].href) mycomp.href = lattice[facility].sections[i].components[m].href; if (highlight.length && !highlight.find(element => element == magnet)) {mycomp.scale.set(params.highlightShrink, params.highlightShrink, params.highlightShrink);} -- GitLab