Cut: Fix for apply of tolerance to the connectors
Bug was caused by refactoring in 0201a5055a
This commit is contained in:
parent
23aa139dbd
commit
e4ccfda0b0
@ -1341,7 +1341,7 @@ void ModelVolume::reset_extra_facets()
|
|||||||
void ModelVolume::apply_tolerance()
|
void ModelVolume::apply_tolerance()
|
||||||
{
|
{
|
||||||
assert(cut_info.is_connector);
|
assert(cut_info.is_connector);
|
||||||
if (cut_info.is_processed)
|
if (!cut_info.is_processed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Vec3d sf = get_scaling_factor();
|
Vec3d sf = get_scaling_factor();
|
||||||
|
@ -2038,7 +2038,7 @@ void GLGizmoCut3D::apply_connectors_in_model(ModelObject* mo, bool &create_dowel
|
|||||||
create_dowels_as_separate_object = true;
|
create_dowels_as_separate_object = true;
|
||||||
}
|
}
|
||||||
else {
|
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();
|
Vec3d shifted_center = m_plane_center + Vec3d::UnitZ();
|
||||||
rotate_vec3d_around_plane_center(shifted_center);
|
rotate_vec3d_around_plane_center(shifted_center);
|
||||||
Vec3d norm = (shifted_center - m_plane_center).normalized();
|
Vec3d norm = (shifted_center - m_plane_center).normalized();
|
||||||
|
Loading…
Reference in New Issue
Block a user