Merge pull request #31618 from fjordyo0707/fix_mesh_edges
Fix the edges of the mesh vertex
This commit is contained in:
commit
b679f622d8
1 changed files with 2 additions and 1 deletions
|
@ -165,11 +165,12 @@ Error MeshDataTool::create_from_surface(const Ref<ArrayMesh> &p_mesh, int p_surf
|
||||||
e.vertex[0] = edge.x;
|
e.vertex[0] = edge.x;
|
||||||
e.vertex[1] = edge.y;
|
e.vertex[1] = edge.y;
|
||||||
edges.push_back(e);
|
edges.push_back(e);
|
||||||
|
v[j]->edges.push_back(face.edges[j]);
|
||||||
|
v[(j + 1) % 3]->edges.push_back(face.edges[j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
edges.write[face.edges[j]].faces.push_back(fidx);
|
edges.write[face.edges[j]].faces.push_back(fidx);
|
||||||
v[j]->faces.push_back(fidx);
|
v[j]->faces.push_back(fidx);
|
||||||
v[j]->edges.push_back(face.edges[j]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
faces.push_back(face);
|
faces.push_back(face);
|
||||||
|
|
Loading…
Reference in a new issue