From 09e5765f220f443d351a5c826566e63565731503 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 10 Apr 2017 17:52:17 +0200 Subject: [PATCH] Do not try to validate against machine_extruder_count when there is no machine_extruder_count --- cura/Settings/GlobalStack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Settings/GlobalStack.py b/cura/Settings/GlobalStack.py index 03758d2599..e9957c22e7 100644 --- a/cura/Settings/GlobalStack.py +++ b/cura/Settings/GlobalStack.py @@ -33,7 +33,7 @@ class GlobalStack(CuraContainerStack): def addExtruder(self, extruder): extruder_count = self.getProperty("machine_extruder_count", "value") - if len(self._extruders) + 1 > extruder_count: + if extruder_count and len(self._extruders) + 1 > extruder_count: raise Exceptions.TooManyExtrudersError("Tried to add extruder to {id} but its extruder count is {count}".format(id = self.id, count = extruder_count)) self._extruders.append(extruder)