From 8d8c0287ee0f6dac9caebfcdedde410a532cb35f Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 29 Sep 2012 16:23:58 +0200 Subject: fixed loading of BG name --- src/mapdata.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/mapdata.py b/src/mapdata.py index e2a8a0d..7a61a64 100644 --- a/src/mapdata.py +++ b/src/mapdata.py @@ -567,7 +567,7 @@ class KPWorldDef(object): @mapfile.dumpable('map_root') class KPMap(object): - __dump_attribs__ = ('layers', 'associateLayers', 'nextLayerNumber', 'doodadDefinitions', 'worlds') + __dump_attribs__ = ('layers', 'associateLayers', 'nextLayerNumber', 'doodadDefinitions', 'worlds', 'bgName') def _preload(self, src): # we need this early so we can use the deref methods! @@ -586,7 +586,6 @@ class KPMap(object): def _dump(self, mapObj, dest): dest['version'] = self.version - dest['bgName'] = self.bgName def save(self): path = self.filePath -- cgit v1.2.3