mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-28 03:25:30 -05:00
Stop rendering map connections twice on load
This commit is contained in:
@@ -11,7 +11,8 @@ ConnectionPixmapItem::ConnectionPixmapItem(MapConnection* connection)
|
||||
this->setEditable(true);
|
||||
setFlag(ItemIsFocusable, true);
|
||||
this->basePixmap = pixmap();
|
||||
refresh();
|
||||
updateOrigin();
|
||||
render(false);
|
||||
|
||||
// If the connection changes externally we want to update the pixmap to reflect the change.
|
||||
connect(connection, &MapConnection::offsetChanged, this, &ConnectionPixmapItem::updatePos);
|
||||
|
||||
Reference in New Issue
Block a user