Skip to content
Permalink
Browse files

dirty fix for geometry without faces/vertices

  • Loading branch information...
lautr3k committed Mar 26, 2016
1 parent 2d5ece5 commit f1b78f60045c140448cacef662728619d225fde4
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/slacer/slicer.js
@@ -363,8 +363,12 @@ var SLAcer = SLAcer || {};
try {
var color = this.settings.color;
//var color = ((1<<24)*Math.random()|0);
var geo = new THREE.ShapeGeometry(shapes[key]);
if (!geo.faces.length || !geo.vertices.length) {
continue; // dirty fix, to do: find why?
}
meshes.push(new THREE.Mesh(
new THREE.ShapeGeometry(shapes[key]),
geo,
new THREE.MeshBasicMaterial({
color: color, side: THREE.DoubleSide
})

0 comments on commit f1b78f6

Please sign in to comment.
You can’t perform that action at this time.