From c97c497d3ed019b26e66d20436b5d4ea1dfc4cd7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 17 Feb 2012 22:21:51 +0100 Subject: fixed the path node tile layer thing business --- src/editorui/editormain.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/editorui/editormain.py') diff --git a/src/editorui/editormain.py b/src/editorui/editormain.py index 1ba06bd..c20cc47 100644 --- a/src/editorui/editormain.py +++ b/src/editorui/editormain.py @@ -280,7 +280,7 @@ class KPMapScene(QtGui.QGraphicsScene): baseDestX = drawLeft * 24 rows = pnLayer.cache - tileset = KP.map.loadedTilesets[KP.map.pathNodeTileset] + tileset = KP.map.loadedTilesets[pnLayer.tileset] tileList = tileset.tiles for y in xrange(drawTop, drawBottom): @@ -426,7 +426,8 @@ class KPEditorWidget(QtGui.QGraphicsView): obj.position = (x,y) obj.size = (1,1) obj.tileset = layer.tileset - obj.kind = paint + obj.kind = self.objectIDToPaint + obj.kindObj = paint obj.updateCache() layer.objects.append(obj) layer.updateCache() @@ -605,7 +606,8 @@ class KPEditorWidget(QtGui.QGraphicsView): obj.position = (x,y) obj.size = (1,1) obj.tileset = layer.tileset - obj.kind = paint + obj.kind = self.objectIDToPaint + obj.kindObj = paint obj.updateCache() layer.objects.append(obj) layer.updateCache() -- cgit v1.2.3