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
path: root/xs
diff options
context:
space:
mode:
authorEnrico Turri <enricoturri@seznam.cz>2018-08-29 09:42:42 +0300
committerEnrico Turri <enricoturri@seznam.cz>2018-08-29 09:42:42 +0300
commit5ee106fbf9baf114619f2622ef9e991c73a09667 (patch)
treed9b11e8dd842b319916daae2f51569e5aa24bb93 /xs
parenteb9f4ee7777f96de59b132a50fce1fb0bd369eb3 (diff)
Fixed transformation center for objects imported from 3mf filesversion_1.41.0-rc
Diffstat (limited to 'xs')
-rw-r--r--xs/src/libslic3r/Format/3mf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xs/src/libslic3r/Format/3mf.cpp b/xs/src/libslic3r/Format/3mf.cpp
index 5de1d26c5..945bb1f86 100644
--- a/xs/src/libslic3r/Format/3mf.cpp
+++ b/xs/src/libslic3r/Format/3mf.cpp
@@ -603,6 +603,8 @@ namespace Slic3r {
if (!_generate_volumes(*object.second, obj_geometry->second, *volumes_ptr))
return false;
+
+ object.second->center_around_origin();
}
// fixes the min z of the model if negative