mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 18:25:54 +08: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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user