mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
fix typo that displayed setNormal() instead of setAttrib() (fixes #141)
This commit is contained in:
@@ -1757,7 +1757,7 @@ public class PShapeOpenGL extends PShape {
|
||||
@Override
|
||||
public void setAttrib(String name, int index, float... values) {
|
||||
if (openShape) {
|
||||
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()");
|
||||
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAttrib()");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1774,7 +1774,7 @@ public class PShapeOpenGL extends PShape {
|
||||
@Override
|
||||
public void setAttrib(String name, int index, int... values) {
|
||||
if (openShape) {
|
||||
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()");
|
||||
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAttrib()");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1791,7 +1791,7 @@ public class PShapeOpenGL extends PShape {
|
||||
@Override
|
||||
public void setAttrib(String name, int index, boolean... values) {
|
||||
if (openShape) {
|
||||
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setNormal()");
|
||||
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setAttrib()");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
X loadJSONObject/Array() now return null if the given file was not found
|
||||
X https://github.com/processing/processing/pull/6081
|
||||
X remove zero width no-break space (U+FEFF) character with trim()
|
||||
X PShapeOpenGL setAttrib() warning says "setNormal()" instead of "setAttrib()"
|
||||
X https://github.com/processing/processing4/issues/141
|
||||
|
||||
|
||||
fixed in 4.x (close/lock these with final 4.0 release)
|
||||
|
||||
Reference in New Issue
Block a user