diff options
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade25to26/VersionUpgrade25to26.py | 5 |
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] |