Working quite nicely

This commit is contained in:
Jack Ha 2016-12-22 09:44:00 +01:00
parent 47e204038f
commit c6d56b60f6
5 changed files with 108 additions and 134 deletions

View file

@ -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