mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
change constants for better error checks (fixes #3776)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user