mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Working quite nicely
This commit is contained in:
parent
47e204038f
commit
c6d56b60f6
5 changed files with 108 additions and 134 deletions
|
@ -54,12 +54,12 @@ class LayerPass(RenderPass):
|
|||
continue
|
||||
|
||||
# Render all layers below a certain number as line mesh instead of vertices.
|
||||
if self._layerview._current_layer_num - self._layerview._solid_layers > -1 and not self._layerview._only_show_top_layers:
|
||||
if self._layerview._current_layer_num > -1 and not self._layerview._only_show_top_layers:
|
||||
start = 0
|
||||
end = 0
|
||||
element_counts = layer_data.getElementCounts()
|
||||
for layer, counts in element_counts.items():
|
||||
if layer + self._layerview._solid_layers > self._layerview._current_layer_num:
|
||||
if layer > self._layerview._current_layer_num:
|
||||
break
|
||||
end += counts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue