diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-01-01 16:13:51 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-01-01 16:13:51 -0600 |
commit | ee339d840cdbc163bd82f522720aa44fb1ae4b69 (patch) | |
tree | 1d62a96e2b523afb3df8dbcb0368a4c79f9b379f | |
parent | 041d6458b6f0040b78b28e4a8b1d2e7f7194b246 (diff) | |
download | koopatlas-ee339d840cdbc163bd82f522720aa44fb1ae4b69.tar.gz koopatlas-ee339d840cdbc163bd82f522720aa44fb1ae4b69.zip |
dumping loading fix, some doodad junk
-rw-r--r-- | src/mapdata.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mapdata.py b/src/mapdata.py index c270bec..4ae87ae 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -154,26 +154,27 @@ class KPPathTileLayer(KPLayer): def _load(self, mapObj, src): self.updateCache() KP.mainWindow.pathNodeList.loadLayer(self) - print self, mapObj, src def __repr__(self): return "<KPPathTileLayer with %r connected to %r>" % (self.tileset, self.associate) - def __init__(self, pathnode): + def __init__(self, pathnode=None): KPLayer.__init__(self) + + self.cache = ['DUMMY_FLAG'] + + if pathnode is None: + return + self.tileset = KP.map.pathNodeTileset self.objects = [] self.doodads = [] self.associate = pathnode - self.cache = ['DUMMY_FLAG'] self.updateCache() self.icon = KP.icon('LayerTile') - def associate(self): - return self.associate - def _visibilityChanged(self, value): for obj in self.objects: item = obj.qtItem |