@@ -528,6 +528,7 @@ import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.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);}
if (id[1]){window.names.push(id[1]);alias.push(id);}
mycomp.magnetType=magnet;
mycomp.magnetType=magnet;
mycomp.name=myname;
mycomp.name=myname;
if (direction>0)mycomp.rotateY(Math.PI);
compBuffer[magnet][l].name=mycomp.name;
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 (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);}
if (highlight.length&&!highlight.find(element=>element==magnet)){mycomp.scale.set(params.highlightShrink,params.highlightShrink,params.highlightShrink);}