Some GUI fixes after the recent contributions

This commit is contained in:
Alessandro Ranellucci 2012-03-03 21:25:26 +01:00
parent 6b31563b70
commit e8c64924db
2 changed files with 12 additions and 8 deletions

View file

@ -113,6 +113,7 @@ sub subdivide {
$num_points++ if $len % $max_length;
# $num_points is the number of points to add between $i-1 and $i
next if $num_points == -1;
my $spacing = $len / ($num_points + 1);
my @new_points = map Slic3r::Point->new($_),
map Slic3r::Geometry::point_along_segment($self->[$i-1], $self->[$i], $spacing * $_),