diff options
author | Treeki <treeki@gmail.com> | 2012-07-25 14:11:19 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-07-25 14:11:19 +0200 |
commit | e0aebec63011cbcb676caa92948e25c62fd6c17b (patch) | |
tree | d23461dd544b6fb6d914406436aadbef5ab08468 /src/mapdata.py | |
parent | faaa82bd81f24fc897a5d0ae912381413625ddeb (diff) | |
download | koopatlas-freeform-unlocks.tar.gz koopatlas-freeform-unlocks.zip |
exporting of unlockable paths donefreeform-unlocks
Diffstat (limited to '')
-rw-r--r-- | src/mapdata.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mapdata.py b/src/mapdata.py index 0332280..d175046 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -464,6 +464,10 @@ class KPPath(object): # self.linkedLayer = mapObj.derefLayer(src['linkedLayer']) def __init__(self, startNode=None, endNode=None, cloneFrom=None): + # this is placed before the null ctor in case we load an old + # kpmap that didn't have unlockSpec + self.unlockSpec = None # always unlocked, by default + if startNode is None and endNode is None: # null ctor, ignore this # we're probably loaded from a file, so trust @@ -476,8 +480,6 @@ class KPPath(object): startNode.exits.append(self) endNode.exits.append(self) - self.unlockSpec = None # always unlocked, by default - if cloneFrom is None: self.animation = 0 else: |