Fix a manual manipulation of List::n. NFC.

This broke encapsulation and thus caused problems for any deeper changes
to List.
This commit is contained in:
Ryan Pavlik 2019-05-23 12:44:04 -05:00 committed by whitequark
parent dd738dd1fc
commit 533ca618eb

View File

@ -36,7 +36,7 @@ void SPolygon::UvTriangulateInto(SMesh *m, SSurface *srf) {
SContour merged = {};
top->tag = 1;
top->CopyInto(&merged);
(merged.l.n)--;
merged.l.RemoveLast(1);
// List all of the edges, for testing whether bridges work.
SEdgeList el = {};