From b24d5ef12be57de9aadfdebaf97a69b50421723c Mon Sep 17 00:00:00 2001 From: Victor Larchenko Date: Sun, 23 Oct 2016 15:03:53 +0600 Subject: [PATCH] T466: Ignoring top layers option for gcode files --- plugins/LayerView/LayerPass.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/LayerView/LayerPass.py b/plugins/LayerView/LayerPass.py index 9e610b68d2..a8a2b7ba7e 100644 --- a/plugins/LayerView/LayerPass.py +++ b/plugins/LayerView/LayerPass.py @@ -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()