Apply undo/redo to border drawing

This commit is contained in:
GriffinR 2020-04-05 11:56:13 -04:00
parent d5908c0045
commit c9b6f87e06
2 changed files with 5 additions and 0 deletions

View file

@ -48,6 +48,8 @@ void Editor::undo() {
map->undo();
map_item->draw();
collision_item->draw();
selected_border_metatiles_item->draw();
displayMapBorder();
}
}
@ -56,6 +58,8 @@ void Editor::redo() {
map->redo();
map_item->draw();
collision_item->draw();
selected_border_metatiles_item->draw();
displayMapBorder();
}
}

View file

@ -42,5 +42,6 @@ void BorderMetatilesPixmapItem::draw() {
}
painter.end();
map->commit();
this->setPixmap(QPixmap::fromImage(image));
}