Permalink
Browse files

remove empty shapes

1 parent f1b78f6 commit 6ad86f2c26c79073a0d268a882f08dc0beda2ebf @lautr3k committed Mar 26, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/slacer/slicer.js
View
@@ -365,7 +365,8 @@ var SLAcer = SLAcer || {};
//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?
+ delete shapes[key];
+ continue;
}
meshes.push(new THREE.Mesh(
geo,

0 comments on commit 6ad86f2

Please sign in to comment.