Skip to content

Commit 1a0d1ec

Browse files
committed
Mae sure all of the objects the op is applied to and the results are
returned in the getNames method
1 parent 0a0e45a commit 1a0d1ec

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ private CSG intersect(ArrayList<CSG> solids) {
104104
}
105105
return first;
106106
}
107-
107+
@Override
108108
public List<String> getNames() {
109-
return names;
109+
ArrayList<String> n= new ArrayList<String>();
110+
n.addAll(getNamesAdded());
111+
n.addAll(names);
112+
return n;
110113
}
111114

112115
public Group setNames(List<String> names) {

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ public Paste setLocation(TransformNR location) {
128128
}
129129

130130
public List<String> getNames() {
131-
return names;
131+
ArrayList<String> n= new ArrayList<String>();
132+
n.addAll(getNamesAdded());
133+
n.addAll(names);
134+
return n;
132135
}
133136

134137
public Paste setNames(List<String> names) {

0 commit comments

Comments
 (0)