T466: Ignoring top layers option for gcode files

This commit is contained in:
Victor Larchenko 2016-10-23 15:03:53 +06:00 committed by Youness Alaoui
parent b4a7173a61
commit b24d5ef12b

View File

@ -55,7 +55,7 @@ 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 - self._layerview._solid_layers > -1 and (not self._layerview._only_show_top_layers or hasattr(node, "gcode")):
start = 0
end = 0
element_counts = layer_data.getElementCounts()