mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:09:04 +08:00
CURA-4461 Set default variant builplate when the new printer is added
This commit is contained in:
parent
10320b7f2e
commit
3a01a407cf
@ -199,7 +199,7 @@ class CuraContainerStack(ContainerStack):
|
||||
def setVariantById(self, new_variant_id: str) -> None:
|
||||
variant = self._empty_variant
|
||||
if new_variant_id == "default":
|
||||
new_variant = self.findDefaultVariant()
|
||||
new_variant = self.findDefaultVariantBuildplate() if self.getMetaDataEntry("type") == "machine" else self.findDefaultVariant()
|
||||
if new_variant:
|
||||
variant = new_variant
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user