mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-19 04:27:29 +08:00
Add comment why sorting the material group map
This commit is contained in:
parent
0b8678d2ae
commit
a74f84fce7
@ -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…
x
Reference in New Issue
Block a user