Bugfix: crash when skirt was contained in brim area. Includes regression test. #2058

This commit is contained in:
Alessandro Ranellucci 2014-05-27 13:38:41 +02:00
parent 98b8936ee2
commit ce1e736b6b
2 changed files with 11 additions and 2 deletions

View file

@ -783,7 +783,7 @@ sub make_brim {
# if brim touches skirt, make it around skirt too
# TODO: calculate actual skirt width (using each extruder's flow in multi-extruder setups)
if ($self->config->skirt_distance + (($self->config->skirts - 1) * $flow->spacing) <= $self->config->brim_width) {
push @islands, map @{$_->split_at_first_point->polyline->grow($grow_distance)}, @{$self->skirt};
push @islands, map @{$_->polygon->split_at_first_point->grow($grow_distance)}, @{$self->skirt};
}
my @loops = ();