From 4a57502535bb7f7c29a39f5ff52cef4f1ff258af Mon Sep 17 00:00:00 2001 From: Daid Date: Fri, 27 Apr 2012 21:48:56 +0200 Subject: [PATCH] backwards compatibility with older project files. --- Cura/gui/projectPlanner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cura/gui/projectPlanner.py b/Cura/gui/projectPlanner.py index 04513bd5..538ea47c 100644 --- a/Cura/gui/projectPlanner.py +++ b/Cura/gui/projectPlanner.py @@ -163,7 +163,8 @@ class projectPlanner(wx.Frame): item.flipZ = cp.get(section, 'flipZ') == 'True' item.swapXZ = cp.get(section, 'swapXZ') == '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 self.list.append(item) -- 2.30.2