Fixes to complete_objects to make t/gcode.t pass

This commit is contained in:
Alessandro Ranellucci committed 2013-12-24 01:13:02 +01:00
1 parent c5ead0f2a6
commit 7ddf4f3ddf
5 files changed
+15 -11

No files matched your search

+2 -1
View File
@@ -166,7 +166,8 @@ sub duplicate {
# note that this will leave the object count unaltered
foreach my $object (@{$self->objects}) {
foreach my $instance (@{$object->instances}) {
my @instances = @{$object->instances}; # store separately to avoid recursion from add_instance() below
foreach my $instance (@instances) {
foreach my $pos (@positions) {
### $object->add_instance($instance->clone); if we had clone()
$object->add_instance(