Commit 9a2b023c authored by Guillaume Seguin's avatar Guillaume Seguin

Correctly start at max_layers + 1 in GcodeModelLight

parent 9d2baa3e
...@@ -545,7 +545,7 @@ class GcodeModelLight(Model): ...@@ -545,7 +545,7 @@ class GcodeModelLight(Model):
self.colors = numpy.array(color_list, dtype = GLfloat).repeat(2, 0) self.colors = numpy.array(color_list, dtype = GLfloat).repeat(2, 0)
self.max_layers = len(self.layer_stops) - 1 self.max_layers = len(self.layer_stops) - 1
self.num_layers_to_draw = self.max_layers self.num_layers_to_draw = self.max_layers + 1
self.printed_until = -1 self.printed_until = -1
self.only_current = False self.only_current = False
self.initialized = False self.initialized = False
......
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