Fix SwapColor will not replace color if their string representation is using a different case
This commit is contained in:
parent
23b82b4cf0
commit
573d7ca051
1 changed files with 2 additions and 1 deletions
|
@ -56,8 +56,9 @@
|
|||
};
|
||||
|
||||
ns.ColorSwap.prototype.applyToolOnFrame_ = function (frame, oldColor, newColor) {
|
||||
oldColor = oldColor.toUpperCase();
|
||||
frame.forEachPixel(function (color, col, row) {
|
||||
if (color == oldColor) {
|
||||
if (color && color.toUpperCase() == oldColor) {
|
||||
frame.pixels[col][row] = newColor;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue