From b2e0f32558d00386ffde699f24122bf8a9f2adb4 Mon Sep 17 00:00:00 2001 From: EnvyKong <33836356+EnvyKong@users.noreply.github.com> Date: Fri, 21 Dec 2018 11:27:27 +0800 Subject: [PATCH] Fix vertex index in extrude loop The vertex id is wrong. --- mesh_ops/MeshExtrudeLoop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_ops/MeshExtrudeLoop.cs b/mesh_ops/MeshExtrudeLoop.cs index a66d2907..b05fa389 100644 --- a/mesh_ops/MeshExtrudeLoop.cs +++ b/mesh_ops/MeshExtrudeLoop.cs @@ -58,7 +58,7 @@ public virtual bool Extrude(int group_id = -1) for ( int i = 0; i < NV; ++i ) { Vector3d v = Mesh.GetVertex(Loop.Vertices[i]); Vector3f n = Mesh.GetVertexNormal(Loop.Vertices[i]); - Vector3d new_v = PositionF(v, n, i); + Vector3d new_v = PositionF(v, n, Loop.Vertices[i]); Mesh.SetVertex(NewLoop.Vertices[i], new_v); }