summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-04 08:53:29 +0200
committerGitHub <noreply@github.com>2019-09-04 08:53:29 +0200
commitb679f622d8e66dbba8e15ec0a222cc6ad1827e80 (patch)
tree162a0383b635353f84e131815332cea36c1f06b4 /scene/resources
parent75cbcb596a2ffc2a289fe1319292d1eb9a788732 (diff)
parent4c28053eade1d5aa93edaea89218718a196f5380 (diff)
Merge pull request #31618 from fjordyo0707/fix_mesh_edges
Fix the edges of the mesh vertex
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/mesh_data_tool.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/mesh_data_tool.cpp b/scene/resources/mesh_data_tool.cpp
index 7cd765fb5d..0c39c3cbb1 100644
--- a/scene/resources/mesh_data_tool.cpp
+++ b/scene/resources/mesh_data_tool.cpp
@@ -165,11 +165,12 @@ Error MeshDataTool::create_from_surface(const Ref<ArrayMesh> &p_mesh, int p_surf
e.vertex[0] = edge.x;
e.vertex[1] = edge.y;
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);
v[j]->faces.push_back(fidx);
- v[j]->edges.push_back(face.edges[j]);
}
faces.push_back(face);