Properly show rotated coordinates

From: Alexey Starikovskiy <[email protected]>


---

 lib/python/rs274/glcanon.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)


diff --git a/lib/python/rs274/glcanon.py b/lib/python/rs274/glcanon.py
index aa820e9..7a7425a 100644
--- a/lib/python/rs274/glcanon.py
+++ b/lib/python/rs274/glcanon.py
@@ -759,16 +759,15 @@ class GlCanonDraw:
             glPushMatrix()
 
             alist = self.dlist(('axes', self.get_view()), gen=self.draw_axes)
-            if self.get_show_relative() and (s.origin[0] or s.origin[1] or
-                                          s.origin[2]):
+            if self.get_show_relative() and (s.origin[0] or s.origin[1] or s.origin[2]):
                 olist = self.dlist('draw_small_origin',
                                         gen=self.draw_small_origin)
                 glCallList(olist)
                 origin = self.to_internal_units(s.origin)[:3]
                 glTranslatef(*origin)
-                glCallList(alist)
-            else:
-                glCallList(alist)
+
+            glRotatef(s.rotation_xy, 0, 0, 1)
+            glCallList(alist)
             glPopMatrix()
 
         if self.get_show_limits():
@@ -1102,7 +1101,6 @@ class GlCanonDraw:
         view = self.get_view()
 
         glPushMatrix()
-        glRotatef(s.rotation_xy, 0, 0, 1)
 
         glColor3f(*self.colors['axis_x'])
         glBegin(GL_LINES)
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to