Attempt to solve conflict with a3bd1b5 by adding id to PrintObject and using that as a hash key.

This commit is contained in:
Y. Sapir 2014-05-25 02:37:42 +03:00
parent 9247f21ff8
commit 19d18bdd84
4 changed files with 19 additions and 7 deletions

View file

@ -168,10 +168,11 @@ sub extrude_loop {
if ($self->config->seal_position eq 'nearest') {
$loop->split_at_vertex($last_pos->nearest_point(\@candidates));
} elsif ($self->config->seal_position eq 'aligned') {
if (defined $self->layer && defined $self->_seal_position->{$self->layer->object}) {
$last_pos = $self->_seal_position->{$self->layer->object};
my $object_id = $self->layer->object->id;
if (defined $self->layer && defined $self->_seal_position->{$object_id}) {
$last_pos = $self->_seal_position->{$object_id};
}
my $point = $self->_seal_position->{$self->layer->object} = $last_pos->nearest_point(\@candidates);
my $point = $self->_seal_position->{$object_id} = $last_pos->nearest_point(\@candidates);
$loop->split_at_vertex($point);
}
} elsif ($self->config->seal_position eq 'random') {