Skip to content
Snippets Groups Projects
Commit bf44d550 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

remove redundant test

parent 100dab2a
Branches
No related tags found
No related merge requests found
...@@ -449,8 +449,7 @@ function add_depth() { ...@@ -449,8 +449,7 @@ function add_depth() {
var newpath = [] var newpath = []
for (var seg = 0; seg < mod.path.length; ++seg) { for (var seg = 0; seg < mod.path.length; ++seg) {
var depth = cut var depth = cut
if ((mod.path[seg][0][0] == mod.path[seg][mod.path[seg].length-1][0]) if (mod.path[seg][0][0] == mod.path[seg][mod.path[seg].length-1][0]) {
&& (mod.path[seg][0][0] == mod.path[seg][mod.path[seg].length-1][0])) {
var newseg = [] var newseg = []
while (depth <= max) { while (depth <= max) {
var idepth = -Math.round(mod.dpi*depth) var idepth = -Math.round(mod.dpi*depth)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment