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:
authorGhostkeeper <rubend@tutanota.com>2020-06-05 15:07:00 +0300
committerGhostkeeper <rubend@tutanota.com>2020-06-05 16:17:36 +0300
commit43980e90cda1e9e899b651311b3ac6ad5981b8ba (patch)
treeb8f27a864e6b1c7507e3da33cafe1958a126e3c6 /plugins/SliceInfoPlugin
parent336bd2bd16a06ebf79c64632385366c59051a6ac (diff)
Use extruderList rather than extruders property
Done during Turbo Testing and Tooling.
Diffstat (limited to 'plugins/SliceInfoPlugin')
-rwxr-xr-xplugins/SliceInfoPlugin/SliceInfo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SliceInfoPlugin/SliceInfo.py b/plugins/SliceInfoPlugin/SliceInfo.py
index 630c0abb1b..20a563c291 100755
--- a/plugins/SliceInfoPlugin/SliceInfo.py
+++ b/plugins/SliceInfoPlugin/SliceInfo.py
@@ -101,7 +101,7 @@ class SliceInfo(QObject, Extension):
user_modified_setting_keys = set() # type: Set[str]
- for stack in [global_stack] + list(global_stack.extruders.values()):
+ for stack in [global_stack] + global_stack.extruderList:
# Get all settings in user_changes and quality_changes
all_keys = stack.userChanges.getAllKeys() | stack.qualityChanges.getAllKeys()
user_modified_setting_keys |= all_keys
@@ -152,7 +152,7 @@ class SliceInfo(QObject, Extension):
# add extruder specific data to slice info
data["extruders"] = []
- extruders = list(global_stack.extruders.values())
+ extruders = global_stack.extruderList
extruders = sorted(extruders, key = lambda extruder: extruder.getMetaDataEntry("position"))
for extruder in extruders: