diff --git a/src/nostalgia/core/studio/tilesheeteditor.cpp b/src/nostalgia/core/studio/tilesheeteditor.cpp index b4e86234..f91bb1ad 100644 --- a/src/nostalgia/core/studio/tilesheeteditor.cpp +++ b/src/nostalgia/core/studio/tilesheeteditor.cpp @@ -63,6 +63,7 @@ class UpdatePixelsCommand: public QUndoCommand { pu.item = pixelItem; pu.oldColorId = m_palette.indexOf(pixelItem->property("color").value().name(QColor::HexArgb)); m_pixelUpdates.insert(pu); + setObsolete(pu.oldColorId == newColorId); } virtual ~UpdatePixelsCommand() = default;