Commit e083dcac authored by Guillaume Seguin's avatar Guillaume Seguin

Fix drawing bug in 3d viewer

parent ac13f135
...@@ -351,7 +351,7 @@ class GcodeModel(Model): ...@@ -351,7 +351,7 @@ class GcodeModel(Model):
start = self.printed_until start = self.printed_until
end = end - start end = end - start
if end > 0: if start >= 0 and end > 0:
glDrawArrays(GL_LINES, start, end) glDrawArrays(GL_LINES, start, end)
self.vertex_buffer.unbind() self.vertex_buffer.unbind()
......
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