Commit 1e51e150 authored by Guillaume Seguin's avatar Guillaume Seguin

Store reference to gcode in gcodeplater

parent c407915c
...@@ -49,6 +49,7 @@ class GcodePlater(Plater): ...@@ -49,6 +49,7 @@ class GcodePlater(Plater):
model = actors.GcodeModel() model = actors.GcodeModel()
model.load_data(gcode) model.load_data(gcode)
obj = gcview.GCObject(model) obj = gcview.GCObject(model)
obj.gcode = gcode
obj.dims = [gcode.xmin, gcode.xmax, obj.dims = [gcode.xmin, gcode.xmax,
gcode.ymin, gcode.ymax, gcode.ymin, gcode.ymax,
gcode.zmin, gcode.zmax] gcode.zmin, gcode.zmax]
......
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