Commit 8e7162c4 authored by Guillaume Seguin's avatar Guillaume Seguin

Display rotation of gcodes around their center in gcview

parent 9be93653
...@@ -126,8 +126,8 @@ class GcodeViewPanel(wxGLPanel): ...@@ -126,8 +126,8 @@ class GcodeViewPanel(wxGLPanel):
continue continue
glPushMatrix() glPushMatrix()
glTranslatef(*(obj.offsets)) glTranslatef(*(obj.offsets))
glTranslatef(*(obj.centeroffset))
glRotatef(obj.rot, 0.0, 0.0, 1.0) glRotatef(obj.rot, 0.0, 0.0, 1.0)
glTranslatef(*(obj.centeroffset))
glScalef(*obj.scale) glScalef(*obj.scale)
obj.model.display() obj.model.display()
......
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