Skip to content

Commit 362b301

Browse files
Canvas: fix tint undo/redo.
1 parent 783522a commit 362b301

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/phasereditor/phasereditor.canvas.core/src/phasereditor/canvas/core/BaseSpriteModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public String getTint() {
9292
}
9393

9494
public void setTint(String tint) {
95-
if (tint.equals(TINT_0X000000)) {
95+
if (TINT_0X000000.equals(tint)) {
9696
_tint = null;
9797
} else {
9898
_tint = tint;

source/phasereditor/phasereditor.canvas.ui/src/phasereditor/canvas/ui/shapes/BaseSpriteControl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ protected void updateTint() {
113113

114114
String tint = getModel().getTint();
115115

116-
if (tint != null) {
116+
if (tint == null) {
117+
node.setEffect(null);
118+
} else {
117119
Blend multiply = new Blend(BlendMode.MULTIPLY);
118120

119121
double width = getTextureWidth();

0 commit comments

Comments
 (0)