Commit d8277e61 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup

parent da0cab63
...@@ -376,12 +376,12 @@ class gviz(wx.Panel): ...@@ -376,12 +376,12 @@ class gviz(wx.Panel):
def _x(x): def _x(x):
return x - self.build_dimensions[3] return x - self.build_dimensions[3]
start_pos = self.hilightpos[:] if hilight else self.lastpos[:]
if gline.command not in ["G0", "G1", "G2", "G3"]: if gline.command not in ["G0", "G1", "G2", "G3"]:
return return
start_pos = self.hilightpos[:] if hilight else self.lastpos[:]
target = self.hilightpos[:] if hilight else self.lastpos[:] target = start_pos[:]
target[5] = 0.0 target[5] = 0.0
target[6] = 0.0 target[6] = 0.0
if gline.x != None: target[0] = gline.x if gline.x != None: target[0] = gline.x
......
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