diff --git a/core/src/processing/opengl/PShapeOpenGL.java b/core/src/processing/opengl/PShapeOpenGL.java index 810cbab708..e6555f8fd1 100644 --- a/core/src/processing/opengl/PShapeOpenGL.java +++ b/core/src/processing/opengl/PShapeOpenGL.java @@ -2005,12 +2005,12 @@ public void setFill(int index, int fill) { } if (image == null) { - if (root.tessUpdate) { + inGeo.colors[index] = PGL.javaToNativeARGB(fill); + if (shapeCreated && tessellated && hasPolys) { int tessIdx = firstPolyVertex + index; tessGeo.polyColors[tessIdx] = PGL.javaToNativeARGB(fill); root.setModifiedPolyColors(tessIdx, tessIdx); } else { - inGeo.colors[index] = PGL.javaToNativeARGB(fill); markForTessellation(); } } @@ -2101,12 +2101,12 @@ public void setTint(int index, int tint) { } if (image != null) { - if (root.tessUpdate) { + inGeo.colors[index] = PGL.javaToNativeARGB(tint); + if (shapeCreated && tessellated && hasPolys) { int tessIdx = firstPolyVertex + index; tessGeo.polyColors[tessIdx] = PGL.javaToNativeARGB(tint); root.setModifiedPolyColors(tessIdx, tessIdx); } else { - inGeo.colors[index] = PGL.javaToNativeARGB(tint); markForTessellation(); } }