Commit bc7cf333 authored by Guillaume Seguin's avatar Guillaume Seguin

Stupid bug

parent 06b0368d
...@@ -509,7 +509,10 @@ class GcodeViewFrame(wx.Frame): ...@@ -509,7 +509,10 @@ class GcodeViewFrame(wx.Frame):
self.p = self # Hack for backwards compatibility with gviz API self.p = self # Hack for backwards compatibility with gviz API
self.clonefrom = objects self.clonefrom = objects
self.platform = actors.Platform(build_dimensions) self.platform = actors.Platform(build_dimensions)
self.model = objects[1].model if objects:
self.model = objects[1].model
else:
self.model = None
self.objects = [GCObject(self.platform), GCObject(None)] self.objects = [GCObject(self.platform), GCObject(None)]
self.glpanel = GcodeViewPanel(self) self.glpanel = GcodeViewPanel(self)
......
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