[nostalgia/core/studio] Get Undo/Redo working
This commit is contained in:
@@ -29,7 +29,7 @@ void TileSheetEditorModel::drawCommand(const geo::Point &pt, std::size_t palIdx)
|
||||
} else {
|
||||
const auto idx = ptToIdx(pt, m_img.columns);
|
||||
if (m_img.getPixel(idx) != palIdx) {
|
||||
pushCommand(new DrawCommand(&m_img, idx, palIdx));
|
||||
pushCommand(new DrawCommand(&m_updated, &m_img, idx, palIdx));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user