summaryrefslogtreecommitdiff
path: root/src/editorui/editormain.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-03-27 23:15:51 +0200
committerTreeki <treeki@gmail.com>2012-03-27 23:15:51 +0200
commit93349b8e694ac31f0aba4f6bc25515bd5a531f7d (patch)
tree22eabb7d881efd482f5f62f526039931994066e9 /src/editorui/editormain.py
parent8d5d27396da513fea62d99d8550923dee2f08ed8 (diff)
downloadkoopatlas-93349b8e694ac31f0aba4f6bc25515bd5a531f7d.tar.gz
koopatlas-93349b8e694ac31f0aba4f6bc25515bd5a531f7d.zip
tilesets now loaded on-demand and not part of KPMap
Diffstat (limited to '')
-rw-r--r--src/editorui/editormain.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py
index c20cc47..1cd2948 100644
--- a/src/editorui/editormain.py
+++ b/src/editorui/editormain.py
@@ -236,7 +236,7 @@ class KPMapScene(QtGui.QGraphicsScene):
baseDestX = drawLeft * 24
rows = layer.cache
- tileset = KP.map.loadedTilesets[layer.tileset]
+ tileset = KP.tileset(layer.tileset)
tileList = tileset.tiles
for y in xrange(drawTop, drawBottom):
@@ -280,7 +280,7 @@ class KPMapScene(QtGui.QGraphicsScene):
baseDestX = drawLeft * 24
rows = pnLayer.cache
- tileset = KP.map.loadedTilesets[pnLayer.tileset]
+ tileset = KP.tileset(pnLayer.tileset)
tileList = tileset.tiles
for y in xrange(drawTop, drawBottom):