mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Do not try to validate against machine_extruder_count when there is no machine_extruder_count
This commit is contained in:
parent
73779eef25
commit
09e5765f22
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class GlobalStack(CuraContainerStack):
|
||||||
|
|
||||||
def addExtruder(self, extruder):
|
def addExtruder(self, extruder):
|
||||||
extruder_count = self.getProperty("machine_extruder_count", "value")
|
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))
|
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)
|
self._extruders.append(extruder)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue