Commit 74fc0f26 authored by Guillaume Seguin's avatar Guillaume Seguin

Really fix the GcodeModel drawing bug

parent ab5e20f2
...@@ -349,7 +349,7 @@ class GcodeModel(Model): ...@@ -349,7 +349,7 @@ class GcodeModel(Model):
self.vertex_color_buffer.bind() self.vertex_color_buffer.bind()
glColorPointer(4, GL_FLOAT, 0, None) glColorPointer(4, GL_FLOAT, 0, None)
start = self.printed_until start = max(self.printed_until, 0)
end = end - start end = end - start
if start >= 0 and end > 0: if start >= 0 and end > 0:
glDrawArrays(GL_LINES, start, end) glDrawArrays(GL_LINES, start, end)
......
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