workaround for vertices being wiped out during tessellation

This commit is contained in:
Ben Fry
2021-12-03 15:21:08 -05:00
parent a66f52b105
commit 4bb9648f58
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -2997,7 +2997,9 @@ public class PShapeOpenGL extends PShape {
tessellateSphere();
}
} else if (family == PATH) {
inGeo.clear();
// TODO workaround for vertices being wiped out,
// but need to identify the real problem here
if (vertices != null) inGeo.clear();
tessellatePath();
}