Skip to content

Commit

Permalink
Cut: Fix for apply of tolerance to the connectors
Browse files Browse the repository at this point in the history
Bug was caused by refactoring in Prusa-Development/PrusaSlicerPrivate@0201a50
  • Loading branch information
YuSanka committed Feb 2, 2023
1 parent 23aa139 commit e4ccfda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/slic3r/GUI/Gizmos/GLGizmoCut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e4ccfda

Please sign in to comment.