mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Fixed logical error that resulted in fill color affecting textures tint
This commit is contained in:
@@ -929,7 +929,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
|
||||
boolean textured = textureImage != null;
|
||||
if (fill || textured) {
|
||||
if (fill) {
|
||||
if (!textured) {
|
||||
vertex[R] = fillR;
|
||||
vertex[G] = fillG;
|
||||
vertex[B] = fillB;
|
||||
@@ -1020,7 +1020,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
|
||||
boolean textured = textureImage != null;
|
||||
if (fill || textured) {
|
||||
if (fill) {
|
||||
if (!textured) {
|
||||
vertex[R] = fillR;
|
||||
vertex[G] = fillG;
|
||||
vertex[B] = fillB;
|
||||
|
||||
Reference in New Issue
Block a user