mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
changes in progress for 86
This commit is contained in:
@@ -343,20 +343,22 @@ public class PGraphics2 extends PGraphics {
|
||||
|
||||
|
||||
public void endShape() {
|
||||
switch (shape) {
|
||||
case LINE_STRIP:
|
||||
stroke_shape(gpath);
|
||||
break;
|
||||
if (gpath != null) { // make sure something has been drawn
|
||||
switch (shape) {
|
||||
case LINE_STRIP:
|
||||
stroke_shape(gpath);
|
||||
break;
|
||||
|
||||
case LINE_LOOP:
|
||||
gpath.closePath();
|
||||
stroke_shape(gpath);
|
||||
break;
|
||||
case LINE_LOOP:
|
||||
gpath.closePath();
|
||||
stroke_shape(gpath);
|
||||
break;
|
||||
|
||||
case POLYGON:
|
||||
gpath.closePath();
|
||||
draw_shape(gpath);
|
||||
break;
|
||||
case POLYGON:
|
||||
gpath.closePath();
|
||||
draw_shape(gpath);
|
||||
break;
|
||||
}
|
||||
}
|
||||
shape = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user