From fc9ba20ea4446049ebf68e1e9b9dfd77352cedd2 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Tue, 28 Aug 2012 13:02:14 -0500 Subject: export batch fixed, checkbox for secret added --- src/mapdata.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mapdata.py') diff --git a/src/mapdata.py b/src/mapdata.py index 5d46685..8f3842a 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -149,7 +149,7 @@ class KPTileLayer(KPLayer): @mapfile.dumpable('associate_layer') class KPPathTileLayer(KPLayer): - __dump_attribs__ = KPLayer.__dump_attribs__ + ('tileset', 'objects', 'doodads') + __dump_attribs__ = KPLayer.__dump_attribs__ + ('tileset', 'objects', 'doodads', 'folder') def _dump(self, mapObj, dest): if isinstance(self.associate, KPNode): @@ -182,6 +182,7 @@ class KPPathTileLayer(KPLayer): self.objects = [] self.doodads = [] self.associate = pathnode + self.folder = '' self.updateCache() @@ -282,8 +283,6 @@ class KPDoodad(object): def _dump(self, mapObj, dest): dest['sourceRef'] = mapObj.refDoodad(self.source) - print self.animations - print mapObj, dest def _load(self, mapObj, src): self.source = mapObj.derefDoodad(src['sourceRef']) @@ -574,6 +573,7 @@ class KPMap(object): if path is None: raise "no path specified for this map" + KP.mainWindow.pathNodeList.setLayerFolders() self.associateLayers = KP.mainWindow.pathNodeList.getLayers() import mapfile -- cgit v1.2.3