change constants for better error checks (fixes #3776)

This commit is contained in:
Ben Fry
2015-09-11 15:37:25 -04:00
parent 2e7d5f3331
commit b9d44a243f
3 changed files with 12 additions and 3 deletions
+7 -3
View File
@@ -84,12 +84,16 @@ public class PShape implements PConstants {
// /** Generic, only draws its child objects. */
// static public final int GROUP = 0;
// GROUP now inherited from PConstants, and is still zero
// These constants were updated in 3.0b6 so that they could be distinguished
// from others in PConstants and improve how some typos were handled.
// https://github.com/processing/processing/issues/3776
/** A line, ellipse, arc, image, etc. */
static public final int PRIMITIVE = 1;
static public final int PRIMITIVE = 101;
/** A series of vertex, curveVertex, and bezierVertex calls. */
static public final int PATH = 2;
static public final int PATH = 102;
/** Collections of vertices created with beginShape(). */
static public final int GEOMETRY = 3;
static public final int GEOMETRY = 103;
/** The shape type, one of GROUP, PRIMITIVE, PATH, or GEOMETRY. */
protected int family;
+4
View File
@@ -14,6 +14,10 @@ X add surface.setAlwaysOnTop(boolean)
X https://github.com/processing/processing/issues/3718
X Implement standard cursor types in OpenGL
X https://github.com/processing/processing/issues/3554
X Change value of constants PRIMITIVE, PATH, and GEOMETRY constants in PShape
X This avoids a collision with entries in PConstants which causes
X confusing errors or no errors to be thrown at all
X https://github.com/processing/processing/issues/3776
andres
X P2D: error calling surface.setTitle()
+1
View File
@@ -61,6 +61,7 @@ X https://github.com/processing/processing/pull/3684
X Ready to add contributed example packages?
X https://github.com/processing/processing/issues/2953
known issues
_ launch4j doesn't work from folders with non-native charsets
_ anything in CP1252 on an English Windows system is fine