T466: Fixed show only top layers bug

This commit is contained in:
Victor Larchenko 2016-11-10 16:56:45 +06:00 committed by Youness Alaoui
parent 2948e99fe8
commit ce9251b5a6
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ class GCodeReader(MeshReader):
count = len(path) count = len(path)
line_types = numpy.empty((count - 1, 1), numpy.int32) line_types = numpy.empty((count - 1, 1), numpy.int32)
line_types[:, 0] = 1 line_types[:, 0] = 1
line_widths = numpy.empty((count - 1, 1), numpy.int32) line_widths = numpy.empty((count - 1, 1), numpy.float32)
line_widths[:, 0] = 0.5 line_widths[:, 0] = 0.5
points = numpy.empty((count, 3), numpy.float32) points = numpy.empty((count, 3), numpy.float32)
i = 0 i = 0

View file

@ -55,7 +55,7 @@ class LayerPass(RenderPass):
continue continue
# Render all layers below a certain number as line mesh instead of vertices. # 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 or hasattr(node, "gcode")): if self._layerview._current_layer_num - self._layerview._solid_layers > -1 and not self._layerview._only_show_top_layers:
start = 0 start = 0
end = 0 end = 0
element_counts = layer_data.getElementCounts() element_counts = layer_data.getElementCounts()