Fixes, improvements and refactoring for bridges and solid surfaces.

This commit is contained in:
Alessandro Ranellucci 2011-11-23 09:49:39 +01:00
parent d13a0e2503
commit 13ef24b5eb
7 changed files with 61 additions and 51 deletions

View file

@ -24,7 +24,7 @@ sub infill_direction {
}
# use bridge angle
if ($surface->isa('Slic3r::Surface::Bridge') && defined $surface->bridge_angle) {
if ($surface->surface_type eq 'bottom' && $self->layer->id > 0 && defined $surface->bridge_angle) {
Slic3r::debugf "Filling bridge with angle %d\n", $surface->bridge_angle;
$rotate[0] = Slic3r::Geometry::deg2rad($surface->bridge_angle);
}