diff options
Diffstat (limited to 'src/editorui/editormain.py')
-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() |