Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2017-08-22 11:44:15 +0300
committerLipu Fei <lipu.fei815@gmail.com>2017-08-22 11:44:22 +0300
commit72575eaf370c99a148edd942636dac28fd4bb0a6 (patch)
tree705cd5ab335ad1cad9d5620f0677a370fdc61537 /plugins/VersionUpgrade/VersionUpgrade25to26
parent1332489391d618dc91c282cad6e63437db8ab858 (diff)
Rename function to _acquireNextUniqueCustomFdmPrinterExtruderStackIdIndex()
CURA-4188
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade25to26')
-rw-r--r--plugins/VersionUpgrade/VersionUpgrade25to26/VersionUpgrade25to26.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade25to26/VersionUpgrade25to26.py b/plugins/VersionUpgrade/VersionUpgrade25to26/VersionUpgrade25to26.py
index d270d0f2b7..2b8a5fe69c 100644
--- a/plugins/VersionUpgrade/VersionUpgrade25to26/VersionUpgrade25to26.py
+++ b/plugins/VersionUpgrade/VersionUpgrade25to26/VersionUpgrade25to26.py
@@ -131,7 +131,7 @@ class VersionUpgrade25to26(VersionUpgrade):
if definition_container_id == "custom" and not self._checkCustomFdmPrinterHasExtruderStack(machine_id):
# go through all extruders and make sure that this custom FDM printer has 8 extruder stacks.
- self._getNextUniqueCustomFdmPrinterExtruderStackIdIndex()
+ self._acquireNextUniqueCustomFdmPrinterExtruderStackIdIndex()
for position in range(8):
self._createCustomFdmPrinterExtruderStack(machine_id, position, quality_container_id, material_container_id)
@@ -145,7 +145,8 @@ class VersionUpgrade25to26(VersionUpgrade):
return [filename], [output.getvalue()]
- def _getNextUniqueCustomFdmPrinterExtruderStackIdIndex(self):
+ ## Acquires the next unique extruder stack index number for the Custom FDM Printer.
+ def _acquireNextUniqueCustomFdmPrinterExtruderStackIdIndex(self):
extruder_stack_dir = Resources.getPath(CuraApplication.ResourceTypes.ExtruderStack)
file_name_list = os.listdir(extruder_stack_dir)
file_name_list = [os.path.basename(file_name) for file_name in file_name_list]