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:
authortamasmeszaros <meszaros.q@gmail.com>2020-01-08 12:49:54 +0300
committertamasmeszaros <meszaros.q@gmail.com>2020-01-08 12:49:54 +0300
commita3a99d7a076df8b2dad39c8e22e83b0e60f500e8 (patch)
treec39fbf78706907f3c38b8fd9fd9dd939c879e773
parentf874b618817f0a9e965e8f2f3919643984462658 (diff)
Do not translate the normal of drainhole points.
-rw-r--r--src/libslic3r/SLAPrint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp
index 1e00e6edb..4d34c09c7 100644
--- a/src/libslic3r/SLAPrint.cpp
+++ b/src/libslic3r/SLAPrint.cpp
@@ -1184,7 +1184,7 @@ sla::DrainHoles SLAPrintObject::transformed_drainhole_points() const
auto tr = trafo().cast<float>();
for (sla::DrainHole &hl : pts) {
hl.pos = tr * hl.pos;
- hl.normal = tr * hl.normal;
+ hl.normal = tr * hl.normal - tr.translation();
}
return pts;