Commit 4d4ae806 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix drawing of current layer in GcodeModelLight

parent e7f21da0
...@@ -766,7 +766,7 @@ class GcodeModelLight(Model): ...@@ -766,7 +766,7 @@ class GcodeModelLight(Model):
glColor4f(*self.color_current_printed) glColor4f(*self.color_current_printed)
if cur_end > end_prev_layer: if cur_end > end_prev_layer:
glDrawArrays(GL_LINES, end_prev_layer + 1, cur_end - end_prev_layer - 1) glDrawArrays(GL_LINES, end_prev_layer + 2, cur_end - end_prev_layer - 2)
glColor4f(*self.color_current) glColor4f(*self.color_current)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment