diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2018-09-05 15:02:08 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2018-09-05 15:02:08 +0300 |
commit | 011281068b1a6047a5d1eab61cdeeafd10f15176 (patch) | |
tree | c712e8ed0a115c568ad82235145dbbcc49b8f36a /xs/src/libslic3r | |
parent | 407aee99428a31191abeee57a3f451b7ebb28bdc (diff) |
Fixed flatten gizmo's flattening normal
Diffstat (limited to 'xs/src/libslic3r')
-rw-r--r-- | xs/src/libslic3r/Format/3mf.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/xs/src/libslic3r/Format/3mf.cpp b/xs/src/libslic3r/Format/3mf.cpp index b838f65c1..4dc40bd3c 100644 --- a/xs/src/libslic3r/Format/3mf.cpp +++ b/xs/src/libslic3r/Format/3mf.cpp @@ -1738,10 +1738,7 @@ namespace Slic3r { stream << " </" << COMPONENTS_TAG << ">\n"; } - Transform3d t = Transform3d::Identity(); - t.translate(Vec3d(instance->offset(0), instance->offset(1), 0.0)); - t.rotate(Eigen::AngleAxisd(instance->rotation, Vec3d::UnitZ())); - t.scale(instance->scaling_factor); + Transform3d t = instance->world_matrix(); build_items.emplace_back(instance_id, t); stream << " </" << OBJECT_TAG << ">\n"; |