Fix right-click not updating selector if only collision changed
This commit is contained in:
parent
f9f0ff84fb
commit
3a98ba9012
1 changed files with 0 additions and 1 deletions
|
@ -138,7 +138,6 @@ void CollisionPixmapItem::updateMovementPermissionSelection(QGraphicsSceneMouseE
|
||||||
void CollisionPixmapItem::updateSelection(QPoint pos) {
|
void CollisionPixmapItem::updateSelection(QPoint pos) {
|
||||||
Block block;
|
Block block;
|
||||||
if (map->getBlock(pos.x(), pos.y(), &block)) {
|
if (map->getBlock(pos.x(), pos.y(), &block)) {
|
||||||
const QSignalBlocker blocker(this->selectedCollision); // We only need a signal for changing one of them, not both
|
|
||||||
this->selectedCollision->setValue(block.collision());
|
this->selectedCollision->setValue(block.collision());
|
||||||
this->selectedElevation->setValue(block.elevation());
|
this->selectedElevation->setValue(block.elevation());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue