summaryrefslogtreecommitdiff
path: root/src/mapdata.py
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-08-29 19:40:50 +0200
committerTreeki <treeki@gmail.com>2012-08-29 19:40:50 +0200
commit7e177703c0380ebf9d6afe9f27df4db24903d6ad (patch)
tree088c0237035b4cc684150e295a5412badf757aec /src/mapdata.py
parenta0fb27c3f890aec576e09754b2e008459956e1f7 (diff)
parentb7ae37e17b8704a6ba3779625c65d1bb05bec251 (diff)
downloadkoopatlas-7e177703c0380ebf9d6afe9f27df4db24903d6ad.tar.gz
koopatlas-7e177703c0380ebf9d6afe9f27df4db24903d6ad.zip
Merge branch 'master' of tsn:Koopatlas ARGH
Diffstat (limited to '')
-rw-r--r--src/mapdata.py6
1 files changed, 3 insertions, 3 deletions
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