summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-01-01 16:13:51 -0600
committerColin Noga <Tempus@chronometry.ca>2012-01-01 16:13:51 -0600
commitee339d840cdbc163bd82f522720aa44fb1ae4b69 (patch)
tree1d62a96e2b523afb3df8dbcb0368a4c79f9b379f /src
parent041d6458b6f0040b78b28e4a8b1d2e7f7194b246 (diff)
downloadkoopatlas-ee339d840cdbc163bd82f522720aa44fb1ae4b69.tar.gz
koopatlas-ee339d840cdbc163bd82f522720aa44fb1ae4b69.zip
dumping loading fix, some doodad junk
Diffstat (limited to '')
-rw-r--r--src/mapdata.py13
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