backwards compatibility with older project files.

This commit is contained in:
Daid 2012-04-27 21:48:56 +02:00
parent a1b4a50342
commit 4a57502535

View File

@ -163,7 +163,8 @@ class projectPlanner(wx.Frame):
item.flipZ = cp.get(section, 'flipZ') == 'True' item.flipZ = cp.get(section, 'flipZ') == 'True'
item.swapXZ = cp.get(section, 'swapXZ') == 'True' item.swapXZ = cp.get(section, 'swapXZ') == 'True'
item.swapYZ = cp.get(section, 'swapYZ') == 'True' item.swapYZ = cp.get(section, 'swapYZ') == 'True'
item.extuder = int(cp.get(section, 'extruder'))-1 if cp.has_option(section, 'extruder'):
item.extuder = int(cp.get(section, 'extruder'))-1
i += 1 i += 1
self.list.append(item) self.list.append(item)