mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-05 17:17:06 +02:00
Return objects by reference instead of always cloning
This commit is contained in:
@@ -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