diff options
author | sheinz <shein@bk.ru> | 2017-06-06 23:47:40 +0300 |
---|---|---|
committer | sheinz <shein@bk.ru> | 2017-06-06 23:47:40 +0300 |
commit | de62a3c0feaf1672bf68bef1cc421d9c8a8ff642 (patch) | |
tree | 02bfd97983667b72f693e5e4960139f799572586 /cura/LayerDataBuilder.py | |
parent | 1c1f21289c1f1583edeb8942a25853fab3f0b2cf (diff) |
Fix displaying layers with python3.6
Diffstat (limited to 'cura/LayerDataBuilder.py')
-rwxr-xr-x | cura/LayerDataBuilder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/LayerDataBuilder.py b/cura/LayerDataBuilder.py index 2051d3a761..a5da57d42b 100755 --- a/cura/LayerDataBuilder.py +++ b/cura/LayerDataBuilder.py @@ -69,7 +69,7 @@ class LayerDataBuilder(MeshBuilder): vertex_offset = 0 index_offset = 0 - for layer, data in self._layers.items(): + for layer, data in sorted(self._layers.items()): ( vertex_offset, index_offset ) = data.build( vertex_offset, index_offset, vertices, colors, line_dimensions, extruders, line_types, indices) self._element_counts[layer] = data.elementCount |