Merge pull request #39729 from madmiraal/fix-39718-3.2
[3.2] Fix creation of duplicate faces in CSG merge faces.
This commit is contained in:
commit
6cf8709808
|
@ -905,7 +905,9 @@ void CSGBrushOperation::Build2DFaces::_merge_faces(const Vector<int> &p_segment_
|
||||||
vertices[p_segment_indices[closest_idx]].point
|
vertices[p_segment_indices[closest_idx]].point
|
||||||
};
|
};
|
||||||
if (are_segements_parallel(edge1, edge2, vertex_snap2)) {
|
if (are_segements_parallel(edge1, edge2, vertex_snap2)) {
|
||||||
|
if (!degenerate_points.find(outer_edge_idx[0]))
|
||||||
degenerate_points.push_back(outer_edge_idx[0]);
|
degenerate_points.push_back(outer_edge_idx[0]);
|
||||||
|
if (!degenerate_points.find(outer_edge_idx[1]))
|
||||||
degenerate_points.push_back(outer_edge_idx[1]);
|
degenerate_points.push_back(outer_edge_idx[1]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue