mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-03 17:05:43 +02: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