diff --git a/panther.js b/panther.js index 88a8de3fcb37ab3926212dd69d81384ac0cfc6db..e0caa1a1a9db7a885511e8fbf424feaf75b182a1 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);}