Fixed recent regression causing a spike when avoid_crossing_perimeters was used on split objects

This commit is contained in:
Alessandro Ranellucci 2013-06-02 16:56:08 +02:00
parent da36df65a4
commit 655d528d92
4 changed files with 50 additions and 17 deletions

View file

@ -719,11 +719,11 @@ sub make_model {
$new_model_object->scale($plater_object->scale);
$new_model_object->add_instance(
rotation => $plater_object->rotate, # around center point
offset => [ @$_ ],
offset => Slic3r::Point->new($_),
) for @{$plater_object->instances};
$new_model_object->align_to_origin;
}
$model->align_to_origin;
return $model;
}