From ec73abecb57a0dbaf3c4a6c5d4ed92a14ed5db86 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 13 Jun 2017 13:48:34 +0200 Subject: [PATCH] Custom material now defaults to PLA. This is not an ideal solution, but it bandaids a problem for the moment. CURA-3911 --- cura/Settings/ContainerManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cura/Settings/ContainerManager.py b/cura/Settings/ContainerManager.py index dd4872b05b..014cff864c 100644 --- a/cura/Settings/ContainerManager.py +++ b/cura/Settings/ContainerManager.py @@ -737,7 +737,9 @@ class ContainerManager(QObject): duplicated_container.setMetaDataEntry("GUID", str(uuid.uuid4())) duplicated_container.setMetaDataEntry("brand", catalog.i18nc("@label", "Custom")) - duplicated_container.setMetaDataEntry("material", catalog.i18nc("@label", "Custom")) + # We're defaulting to PLA, as machines with material profiles don't like material types they don't know. + # TODO: This is a hack, the only reason this is in now is to bandaid the problem as we're close to a release! + duplicated_container.setMetaDataEntry("material", "PLA") duplicated_container.setName(catalog.i18nc("@label", "Custom Material")) self._container_registry.addContainer(duplicated_container)