diff --git a/src/tiledquickplugin/tilelayeritem.cpp b/src/tiledquickplugin/tilelayeritem.cpp index e4cd0cfe38..7c625b7097 100644 --- a/src/tiledquickplugin/tilelayeritem.cpp +++ b/src/tiledquickplugin/tilelayeritem.cpp @@ -177,9 +177,11 @@ QSGNode *TileLayerItem::updatePaintNode(QSGNode *node, // return; // } + const auto offset = tileset->tileOffset(); + TileData data; - data.x = static_cast(pos.x()); - data.y = static_cast(pos.y() - size.height()); + data.x = static_cast(pos.x()) + offset.x(); + data.y = static_cast(pos.y() - size.height()) + offset.y(); data.width = static_cast(size.width()); data.height = static_cast(size.height()); data.flippedHorizontally = cell.flippedHorizontally();