Making Pinch and Curve sort vertices after changing them

issue: MatterHackers/MCCentral#3766
pinch leaves mesh in a bed state
This commit is contained in:
LarsBrubaker 2018-06-25 21:10:04 -07:00
parent 0dd43e84a0
commit 5251839dee
4 changed files with 8 additions and 2 deletions

View file

@ -172,6 +172,9 @@ namespace MatterHackers.MatterControl.DesignTools
curvedMesh.Vertices[i].Position = Vector3.Transform(worldWithBend, matrix.Inverted);
}
// the vertices need to be resorted as they have moved relative to eachother
curvedMesh.Vertices.Sort();
curvedMesh.MarkAsChanged();
curvedMesh.CalculateNormals();
}