From 93349b8e694ac31f0aba4f6bc25515bd5a531f7d Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 27 Mar 2012 23:15:51 +0200 Subject: tilesets now loaded on-demand and not part of KPMap --- src/editorui/editormain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/editorui') 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): -- cgit v1.2.3