Remove pointless check on metatile layer mouse event
This commit is contained in:
parent
b31b2c2fc7
commit
b7d1db61a8
1 changed files with 3 additions and 5 deletions
|
@ -57,11 +57,9 @@ void MetatileLayersItem::mousePressEvent(QGraphicsSceneMouseEvent *event) {
|
||||||
} else {
|
} else {
|
||||||
int x, y;
|
int x, y;
|
||||||
this->getBoundedCoords(event->pos(), &x, &y);
|
this->getBoundedCoords(event->pos(), &x, &y);
|
||||||
if (prevChangedTile.x() != x || prevChangedTile.y() != y) {
|
this->prevChangedTile.setX(x);
|
||||||
this->prevChangedTile.setX(x);
|
this->prevChangedTile.setY(y);
|
||||||
this->prevChangedTile.setY(y);
|
emit this->tileChanged(x, y);
|
||||||
emit this->tileChanged(x, y);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue