mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-23 09:06:45 -05:00
Fix paint edit history
This commit is contained in:
@@ -1173,10 +1173,11 @@ void Editor::mouseEvent_map(QGraphicsSceneMouseEvent *event, MapPixmapItem *item
|
||||
} else {
|
||||
item->floodFill(event);
|
||||
}
|
||||
} else if (event->type() == QEvent::GraphicsSceneMouseRelease) {
|
||||
// Update the tile rectangle at the end of a click-drag selection
|
||||
this->updateCursorRectPos(pos.x(), pos.y());
|
||||
} else {
|
||||
if (event->type() == QEvent::GraphicsSceneMouseRelease) {
|
||||
// Update the tile rectangle at the end of a click-drag selection
|
||||
this->updateCursorRectPos(pos.x(), pos.y());
|
||||
}
|
||||
this->setSmartPathCursorMode(event);
|
||||
this->setStraightPathCursorMode(event);
|
||||
if (this->cursorMapTileRect->getStraightPathMode()) {
|
||||
|
||||
Reference in New Issue
Block a user