Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-01-09 02:47:40 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-01-09 02:47:40 +0300
commit64c9e3af4bf391507866240b748b1c4006d50c6e (patch)
tree3b1feda8d5b9412b09a20caf33a8a21bb045cccd /xs/src/libslic3r/Model.cpp
parent9f4f7110178596877b4ae692a8c3ea4142255e03 (diff)
Bugfix: objects were floating in STL export after rotation and flip. #2512
Diffstat (limited to 'xs/src/libslic3r/Model.cpp')
-rw-r--r--xs/src/libslic3r/Model.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Model.cpp b/xs/src/libslic3r/Model.cpp
index 40926eb93..224ad67a7 100644
--- a/xs/src/libslic3r/Model.cpp
+++ b/xs/src/libslic3r/Model.cpp
@@ -520,6 +520,9 @@ ModelObject::scale(const Pointf3 &versor)
for (ModelVolumePtrs::const_iterator v = this->volumes.begin(); v != this->volumes.end(); ++v) {
(*v)->mesh.scale(versor);
}
+
+ // reset origin translation since it doesn't make sense anymore
+ this->origin_translation = Pointf3(0,0,0);
this->invalidate_bounding_box();
}