diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index e0a760fdd..62a8f2ab5 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -141,7 +141,7 @@ sub extrude_loop { my $obj_ptr = 0; if (defined $self->layer) { $obj_ptr = $self->layer->object->ptr; - if (defined $self->_seam_position->{$self->layer->object}) { + if (defined $self->_seam_position->{$obj_ptr}) { $last_pos = $self->_seam_position->{$obj_ptr}; } }