mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 00:28:59 +08:00
Fixed machine not being set
This commit is contained in:
parent
d7004d3547
commit
3dae6b4bbf
@ -33,10 +33,7 @@ class ExtruderStack(CuraContainerStack):
|
||||
def setNextStack(self, stack: ContainerStack) -> None:
|
||||
super().setNextStack(stack)
|
||||
stack.addExtruder(self)
|
||||
if not self.getMetaDataEntry("machine"):
|
||||
self.addMetaDataEntry("machine", stack.id)
|
||||
else:
|
||||
self.setMetaDataEntry("machine", stack.id)
|
||||
self.addMetaDataEntry("machine", stack.id)
|
||||
|
||||
# For backward compatibility: Register the extruder with the Extruder Manager
|
||||
ExtruderManager.getInstance().registerExtruder(self, stack.id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user