mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 15:13:58 -06:00
Fixed crash while repairing imported model
This commit is contained in:
parent
61ab9e37d6
commit
e7e4cc5600
1 changed files with 5 additions and 4 deletions
|
@ -601,11 +601,12 @@ void stl_remove_unconnected_facets(stl_file *stl)
|
||||||
stl->neighbors_start[facet].which_vertex_not[edge[1]],
|
stl->neighbors_start[facet].which_vertex_not[edge[1]],
|
||||||
stl->neighbors_start[facet].which_vertex_not[edge[2]]
|
stl->neighbors_start[facet].which_vertex_not[edge[2]]
|
||||||
};
|
};
|
||||||
|
|
||||||
// Update statistics on edge connectivity.
|
// Update statistics on edge connectivity.
|
||||||
if (neighbor[0] == -1)
|
if ((neighbor[0] == -1) && (neighbor[1] != -1))
|
||||||
stl_update_connects_remove_1(neighbor[1]);
|
stl_update_connects_remove_1(neighbor[1]);
|
||||||
if (neighbor[1] == -1)
|
if ((neighbor[1] == -1) && (neighbor[0] != -1))
|
||||||
stl_update_connects_remove_1(neighbor[0]);
|
stl_update_connects_remove_1(neighbor[0]);
|
||||||
|
|
||||||
if (neighbor[0] >= 0) {
|
if (neighbor[0] >= 0) {
|
||||||
if (neighbor[1] >= 0) {
|
if (neighbor[1] >= 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue