1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-11 08:04:25 +00:00

Fix bounding_box_center()

This commit is contained in:
Alessandro Ranellucci
2012-11-24 00:15:02 +01:00
parent 116ab446e3
commit 93310a6a81
+2 -2
View File
@@ -684,8 +684,8 @@ sub bounding_box {
sub bounding_box_center {
my @bounding_box = bounding_box(@_);
return Slic3r::Point->new(
($bounding_box[X2] - $bounding_box[X1]) / 2,
($bounding_box[Y2] - $bounding_box[Y1]) / 2,
($bounding_box[X2] + $bounding_box[X1]) / 2,
($bounding_box[Y2] + $bounding_box[Y1]) / 2,
);
}