fix typo that displayed setNormal() instead of setAttrib() (fixes #141)

This commit is contained in:
Ben Fry
2020-10-06 12:38:54 -04:00
parent 40469507e9
commit 4153e4fd5c
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -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
View File
@@ -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)