mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Do not pass the Print object to SVG::output anymore
This commit is contained in:
@@ -12,10 +12,7 @@ sub factor {
|
||||
}
|
||||
|
||||
sub svg {
|
||||
my ($print) = @_;
|
||||
$print ||= Slic3r::Print->new(x_length => 200 / &Slic3r::SCALING_FACTOR, y_length => 200 / &Slic3r::SCALING_FACTOR);
|
||||
my $svg = SVG->new(width => 200 * 10, height => 200 * 10);
|
||||
|
||||
my $marker_end = $svg->marker(
|
||||
id => "endArrow",
|
||||
viewBox => "0 0 10 10",
|
||||
@@ -35,9 +32,9 @@ sub svg {
|
||||
}
|
||||
|
||||
sub output {
|
||||
my ($print, $filename, %things) = @_;
|
||||
my ($filename, %things) = @_;
|
||||
|
||||
my $svg = svg($print);
|
||||
my $svg = svg();
|
||||
|
||||
foreach my $type (qw(polygons polylines white_polygons green_polygons red_polygons red_polylines)) {
|
||||
if ($things{$type}) {
|
||||
|
||||
Reference in New Issue
Block a user