[nostalgia/core/studio] Fix tile sheet editor to correctly iterate over tiles

This commit is contained in:
Gary Talent 2019-11-26 23:45:29 -06:00
parent d37cd50d99
commit d06724ffe1
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import QtQuick 2.0
Rectangle { Rectangle {
id: pixel; id: pixel;
property int pixelNumber: index property int pixelNumber: index
color: sheetData.pixel(index) color: sheetData.pixel(pixelNumber)
width: parent.width / 8 width: parent.width / 8
height: parent.height / 8 height: parent.height / 8
border.color: '#717d7e' border.color: '#717d7e'

View File

@ -18,7 +18,7 @@ Rectangle {
Repeater { Repeater {
model: 64 model: 64
Pixel { Pixel {
pixelNumber: index pixelNumber: index + 64 * tile.tileNumber
} }
} }
} }