diff options
Diffstat (limited to 'src')
-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 |