mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:48:59 +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:
|
def setVariantById(self, new_variant_id: str) -> None:
|
||||||
variant = self._empty_variant
|
variant = self._empty_variant
|
||||||
if new_variant_id == "default":
|
if new_variant_id == "default":
|
||||||
new_variant = self.findDefaultVariant()
|
new_variant = self.findDefaultVariantBuildplate() if self.getMetaDataEntry("type") == "machine" else self.findDefaultVariant()
|
||||||
if new_variant:
|
if new_variant:
|
||||||
variant = new_variant
|
variant = new_variant
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user