Skip to content

Commit 5ca389d

Browse files
committed
make sure the breaking changes do not continue
1 parent 35f01bf commit 5ca389d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/CaDoodleFile.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ public void initialize() {
156156
process(op);
157157
} catch (Throwable t) {
158158
t.printStackTrace();
159-
opperations.remove(op);
159+
indexStarting = i+1;
160+
break;
161+
//opperations.remove(op);
160162
}
161163
}
162164
setCurrentIndex(indexStarting);

src/main/java/com/neuronrobotics/bowlerstudio/scripting/cadoodle/Group.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ public List<CSG> process(List<CSG> incoming) {
6666
if (intersect)
6767
holecutter = intersect(holes);
6868
else
69-
holecutter = CSG.unionAll(holes);
69+
holecutter = holes.size()==1?holes.get(0):CSG.unionAll(holes);
7070
if (hull)
7171
holecutter = holecutter.hull();
7272
}
7373
if (intersect)
7474
result = intersect(solids);
7575
else
76-
result = CSG.unionAll(solids);
76+
result =solids.size()==1?solids.get(0): CSG.unionAll(solids);
7777
Color c = result.getColor();
7878
if (hull) {
7979
result = result.hull();

0 commit comments

Comments
 (0)