From d749baf6bcc353ba4944a0c68a88d3576eb787e4 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Tue, 14 Sep 2021 13:11:21 +0200 Subject: [PATCH] Fix of 58d8ab3deaaac1049439728d5a0f46c4b6a592f5 --- src/libslic3r/TriangleSelector.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libslic3r/TriangleSelector.cpp b/src/libslic3r/TriangleSelector.cpp index 7dfe6a8f8..987ef1c0a 100644 --- a/src/libslic3r/TriangleSelector.cpp +++ b/src/libslic3r/TriangleSelector.cpp @@ -896,7 +896,10 @@ bool TriangleSelector::is_pointer_in_triangle(int facet_idx) const bool TriangleSelector::faces_camera(int facet) const { assert(facet < m_orig_size_indices); - return (m_cursor.uniform_scaling ? m_face_normals[facet] : m_cursor.trafo_normal * m_face_normals[facet]).dot(m_cursor.dir) < 0.; + Vec3f n = m_face_normals[facet]; + if (! m_cursor.uniform_scaling) + n = m_cursor.trafo_normal * n; + return n.dot(m_cursor.dir) < 0.; }