Fixed #2116 Apply colortransform after filters

This commit is contained in:
Jindra Petřík
2023-11-06 23:21:46 +01:00
parent b0b85bf017
commit 789df070c5
2 changed files with 6 additions and 1 deletions

View File

@@ -867,6 +867,10 @@ public class Timeline {
if (blendMode > 1) {
clrTrans2 = null;
}
if (filters != null && !filters.isEmpty()) {
clrTrans2 = null;
}
if (clipDepth > -1) {
//Make transparent colors opaque, mask should be only made by shapes
@@ -997,7 +1001,7 @@ public class Timeline {
if (!(sameImage && canUseSameImage)) {
g.setTransform(drawMatrix.toTransform());
if (blendMode > 1 && clrTrans != null) {
if ((blendMode > 1 || (filters != null && !filters.isEmpty())) && clrTrans != null) {
img = clrTrans.apply(img);
}