blendMode() should be a warning, not fatal

This commit is contained in:
Ben Fry
2018-03-28 10:40:13 -04:00
parent d9216414fa
commit 6b7580889c
2 changed files with 8 additions and 3 deletions

View File

@@ -1,7 +1,8 @@
/*
Part of the Processing project - http://processing.org
Copyright (c) 2005-11 Ben Fry and Casey Reas
Copyright (c) 2005-12 Ben Fry and Casey Reas
Copyright (c) 2012-18 The Processing Foundation
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -551,8 +552,8 @@ public class PGraphicsPDF extends PGraphicsJava2D {
//
protected void blendModeImpl() {
if (blendMode != BLEND) {
nope("blendMode");
if (blendMode != REPLACE && blendMode != BLEND) {
showMissingWarning("blendMode");
}
}