diff --git a/core/src/processing/opengl/PShapeOpenGL.java b/core/src/processing/opengl/PShapeOpenGL.java index e53a2c943..810cbab70 100644 --- a/core/src/processing/opengl/PShapeOpenGL.java +++ b/core/src/processing/opengl/PShapeOpenGL.java @@ -2455,7 +2455,7 @@ public void setAmbient(int index, int ambient) { @Override public int getSpecular(int index) { - if (family == GROUP) { + if (family != GROUP) { if (root.tessUpdate) { return PGL.nativeToJavaARGB(tessGeo.polySpecular[firstPolyVertex + index]); } else { @@ -2528,7 +2528,7 @@ public void setSpecular(int index, int specular) { @Override public int getEmissive(int index) { - if (family == GROUP) { + if (family != GROUP) { if (root.tessUpdate) { return PGL.nativeToJavaARGB(tessGeo.polyEmissive[firstPolyVertex + index]); } else { @@ -2602,7 +2602,7 @@ public void setEmissive(int index, int emissive) { @Override public float getShininess(int index) { - if (family == GROUP) { + if (family != GROUP) { if (root.tessUpdate) { return tessGeo.polyShininess[firstPolyVertex + index]; } else {