mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Add comment why sorting the material group map
This commit is contained in:
parent
0b8678d2ae
commit
a74f84fce7
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ class MaterialManager(QObject):
|
|||
else:
|
||||
new_node = MaterialNode(material_metadata)
|
||||
group.derived_material_node_list.append(new_node)
|
||||
# Order this map alphabetically so it's easier to navigate in a debugger
|
||||
self._material_group_map = OrderedDict(sorted(self._material_group_map.items(), key = lambda x: x[0]))
|
||||
|
||||
# Map #1.5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue