mirror of
https://github.com/huderlem/porymap.git
synced 2026-06-20 06:39:51 -05:00
draw selected event on top when stacked
This commit is contained in:
parent
c189d2fac8
commit
4774def5cd
|
|
@ -1215,6 +1215,7 @@ void Editor::redrawObject(DraggablePixmapItem *item) {
|
|||
painter.end();
|
||||
item->setPixmap(QPixmap::fromImage(image));
|
||||
}
|
||||
item->updatePosition();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1242,6 +1243,7 @@ void Editor::selectMapEvent(DraggablePixmapItem *object, bool toggle) {
|
|||
selected_events->append(object);
|
||||
}
|
||||
updateSelectedEvents();
|
||||
object->setZValue(object->y() + 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user