From e02284b1f06068c321e7dcf10856b82524c4c2bb Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 21 Oct 2016 13:11:08 +0200 Subject: [PATCH] Expose determineQualityAndQualityChangesForQualityType It is needed to get the quality belonging to a certain quality changes ID that is not on the global stack. We already had this function that does just that. Contributes to issue CURA-2737. --- cura/Settings/MachineManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 8018ae7fd7..326a011562 100644 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -713,7 +713,7 @@ class MachineManager(QObject): # Get quality container and optionally the quality_changes container. if container_type == "quality": - new_quality_settings_list = self._determineQualityAndQualityChangesForQualityType(quality_type) + new_quality_settings_list = self.determineQualityAndQualityChangesForQualityType(quality_type) elif container_type == "quality_changes": new_quality_settings_list = self._determineQualityAndQualityChangesForQualityChanges(quality_name) else: @@ -749,7 +749,7 @@ class MachineManager(QObject): # # \param quality_name \type{str} the name of the quality. # \return \type{List[Dict]} with keys "stack", "quality" and "quality_changes". - def _determineQualityAndQualityChangesForQualityType(self, quality_type): + def determineQualityAndQualityChangesForQualityType(self, quality_type): quality_manager = QualityManager.getInstance() result = [] empty_quality_changes = self._empty_quality_changes_container