diff options
author | Treeki <treeki@gmail.com> | 2012-02-17 22:21:51 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-17 22:21:51 +0100 |
commit | c97c497d3ed019b26e66d20436b5d4ea1dfc4cd7 (patch) | |
tree | f14d81688c984c0e4a2d5f058a35aa321ea46b0b /src/editorui/editormain.py | |
parent | 5db723084547343dde7c8a0e11f2ca1f7c7149f2 (diff) | |
download | koopatlas-c97c497d3ed019b26e66d20436b5d4ea1dfc4cd7.tar.gz koopatlas-c97c497d3ed019b26e66d20436b5d4ea1dfc4cd7.zip |
fixed the path node tile layer thing business
Diffstat (limited to '')
-rw-r--r-- | src/editorui/editormain.py | 8 |
1 files changed, 5 insertions, 3 deletions
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() |