Fix paint edit history

This commit is contained in:
GriffinR 2022-01-14 03:12:39 -05:00 committed by huderlem
parent 2f6de2a285
commit b79ba466e0

View file

@ -1173,10 +1173,11 @@ void Editor::mouseEvent_map(QGraphicsSceneMouseEvent *event, MapPixmapItem *item
} else { } else {
item->floodFill(event); 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 { } 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->setSmartPathCursorMode(event);
this->setStraightPathCursorMode(event); this->setStraightPathCursorMode(event);
if (this->cursorMapTileRect->getStraightPathMode()) { if (this->cursorMapTileRect->getStraightPathMode()) {