Commit 48642be8 authored by Guillaume Seguin's avatar Guillaume Seguin

Cleanup panning

parent a6a42f64
......@@ -337,9 +337,7 @@ class GcodeViewPanel(wxGLPanel):
self.transv = map(lambda x, y, z, c: c - self.dist * (x - y) / z, p1, p2, sz, self.transv)
glLoadIdentity()
glTranslatef(*self.transv)
glMultMatrixd(build_rotmatrix(self.basequat))
glTranslatef(p2[0] - p1[0], p2[1] - p1[1], 0)
self.initpos = None
else:
event.Skip()
......
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