mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Return objects by reference instead of always cloning
This commit is contained in:
@@ -108,7 +108,9 @@ sub fill_surface {
|
||||
next;
|
||||
}
|
||||
}
|
||||
push @paths, $path;
|
||||
|
||||
# make a clone before $collection goes out of scope
|
||||
push @paths, $path->clone;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,9 @@ sub fill_surface {
|
||||
next;
|
||||
}
|
||||
}
|
||||
push @polylines, $polyline;
|
||||
|
||||
# make a clone before $collection goes out of scope
|
||||
push @polylines, $polyline->clone;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user