Integerize plater thumbnails

This commit is contained in:
Alessandro Ranellucci 2013-08-05 20:21:08 +02:00
parent d8e2cde962
commit 0ce7ebc4b8
2 changed files with 10 additions and 6 deletions

View file

@ -1174,6 +1174,9 @@ sub make_thumbnail {
);
# Note: the call to simplify() was removed here because it used Clipper
# simplification which needs integerization.
# TODO: remove polygons with area <= 1 pixel
$thumbnail->scale(&Slic3r::SCALING_FACTOR);
$self->thumbnail($thumbnail); # ignored in multi-threaded environments
$self->free_model_object;