mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Bugfix: z_offset was not applied in spiral_vase. Includes regression test #1343
This commit is contained in:
@@ -18,7 +18,7 @@ sub _build_spiralvase {
|
||||
my $self = shift;
|
||||
|
||||
return $Slic3r::Config->spiral_vase
|
||||
? Slic3r::GCode::SpiralVase->new
|
||||
? Slic3r::GCode::SpiralVase->new(config => $self->gcodegen->config)
|
||||
: undef;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package Slic3r::GCode::SpiralVase;
|
||||
use Moo;
|
||||
|
||||
has 'config' => (is => 'ro', required => 1);
|
||||
|
||||
use Slic3r::Geometry qw(unscale);
|
||||
|
||||
sub process_layer {
|
||||
@@ -16,7 +18,7 @@ sub process_layer {
|
||||
|
||||
my $new_gcode = "";
|
||||
my $layer_height = $layer->height;
|
||||
my $z = $layer->print_z - $layer_height;
|
||||
my $z = $layer->print_z + $self->config->z_offset - $layer_height;
|
||||
my $newlayer = 0;
|
||||
Slic3r::GCode::Reader->new(gcode => $gcode)->parse(sub {
|
||||
my ($reader, $cmd, $args, $info) = @_;
|
||||
|
||||
Reference in New Issue
Block a user