Apply undo/redo to border drawing
This commit is contained in:
parent
d5908c0045
commit
c9b6f87e06
2 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -42,5 +42,6 @@ void BorderMetatilesPixmapItem::draw() {
|
|||
}
|
||||
|
||||
painter.end();
|
||||
map->commit();
|
||||
this->setPixmap(QPixmap::fromImage(image));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue