Skip to content

Commit

Permalink
fix topElemet false
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed Mar 8, 2024
1 parent 55de10a commit 0196fd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/svg-extruder.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,13 @@ AFRAME.registerComponent('svg-extruder', {
el.setObject3D('mesh', mergedMesh);

//el.setAttribute('material', `src:${data.bevelSrc};roughness:1;repeat: 0.1 0.1`);


const topElement = this.el.children[0];
if (data.topElement) {
// create entity from shapes for top level of extruded geometry
this.createTopEntity(topGeometryArray);
} else if (topElement) {
el.removeChild(topElement);
}

},
Expand Down

0 comments on commit 0196fd3

Please sign in to comment.