mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
Bugfix: z_offset was not applied in spiral_vase. Includes regression test #1343
This commit is contained in:
parent
1210b89893
commit
b5907dc734
3 changed files with 13 additions and 3 deletions
|
@ -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) = @_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue