draw event frame for pasted events

This commit is contained in:
garak 2021-09-07 13:51:48 -04:00 committed by huderlem
parent 97f2980cf0
commit 056b2164a8

View file

@ -1528,7 +1528,6 @@ void MainWindow::paste() {
case 0: case 0:
{ {
// can only paste currently selected metatiles on this tab // can only paste currently selected metatiles on this tab
// can only paste events to this tab
if (pasteObject["object"].toString() != "metatile_selection") { if (pasteObject["object"].toString() != "metatile_selection") {
return; return;
} }
@ -1594,6 +1593,7 @@ void MainWindow::paste() {
} }
editor->map->editHistory.push(new EventPaste(this->editor, editor->map, newEvents)); editor->map->editHistory.push(new EventPaste(this->editor, editor->map, newEvents));
updateObjects();
break; break;
} }