From e4ccfda0b08d454cd08bb3527e985dc791a6b619 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 2 Feb 2023 12:23:54 +0100 Subject: [PATCH] Cut: Fix for apply of tolerance to the connectors Bug was caused by refactoring in https://github.com/Prusa-Development/PrusaSlicerPrivate/commit/0201a5055aaa1a52e95a21c852b71200f5fc9145 --- src/libslic3r/Model.cpp | 2 +- src/slic3r/GUI/Gizmos/GLGizmoCut.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index bdd9bfd7056..68c143fca46 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -1341,7 +1341,7 @@ void ModelVolume::reset_extra_facets() void ModelVolume::apply_tolerance() { assert(cut_info.is_connector); - if (cut_info.is_processed) + if (!cut_info.is_processed) return; Vec3d sf = get_scaling_factor(); diff --git a/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp b/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp index 30ba3cde91d..056ec9d140a 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoCut.cpp @@ -2038,7 +2038,7 @@ void GLGizmoCut3D::apply_connectors_in_model(ModelObject* mo, bool &create_dowel create_dowels_as_separate_object = true; } else { - // culculate shift of the connector center regarding to the position on the cut plane + // calculate shift of the connector center regarding to the position on the cut plane Vec3d shifted_center = m_plane_center + Vec3d::UnitZ(); rotate_vec3d_around_plane_center(shifted_center); Vec3d norm = (shifted_center - m_plane_center).normalized();