From ee339d840cdbc163bd82f522720aa44fb1ae4b69 Mon Sep 17 00:00:00 2001 From: Colin Noga Date: Sun, 1 Jan 2012 16:13:51 -0600 Subject: dumping loading fix, some doodad junk --- src/mapdata.py | 13 +++++++------ 1 file 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 "" % (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 -- cgit v1.2.3