Remove pointless check on metatile layer mouse event

This commit is contained in:
Marcus Huderle 2020-06-28 16:36:55 -05:00
parent b31b2c2fc7
commit b7d1db61a8

View file

@ -57,11 +57,9 @@ void MetatileLayersItem::mousePressEvent(QGraphicsSceneMouseEvent *event) {
} else {
int x, y;
this->getBoundedCoords(event->pos(), &x, &y);
if (prevChangedTile.x() != x || prevChangedTile.y() != y) {
this->prevChangedTile.setX(x);
this->prevChangedTile.setY(y);
emit this->tileChanged(x, y);
}
this->prevChangedTile.setX(x);
this->prevChangedTile.setY(y);
emit this->tileChanged(x, y);
}
}