mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 05:29:01 +08:00
Fix for #29
This commit is contained in:
parent
005b02ba10
commit
33c69b32f8
@ -39,6 +39,8 @@ class LayerView(View):
|
|||||||
element_counts = layer_data.getElementCounts()
|
element_counts = layer_data.getElementCounts()
|
||||||
for layer, counts in element_counts.items():
|
for layer, counts in element_counts.items():
|
||||||
end += sum(counts)
|
end += sum(counts)
|
||||||
|
## Hack to ensure the end is correct. Not quite sure what causes this
|
||||||
|
end += 2 * len(counts)
|
||||||
|
|
||||||
if layer >= end_layer:
|
if layer >= end_layer:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user