chiark / gitweb /
Do not show the rotate ring in GCode preview.
authordaid303 <daid303@gmail.com>
Thu, 13 Dec 2012 16:47:50 +0000 (17:47 +0100)
committerdaid303 <daid303@gmail.com>
Thu, 13 Dec 2012 16:47:50 +0000 (17:47 +0100)
Cura/gui/preview3d.py

index 996d97348ee9b772e216797eb563a69db06baa5c..9cc852e76628a6e3f4eb7137ff9c71ff98e15f77 100644 (file)
@@ -513,7 +513,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
                if e.Dragging() and e.LeftIsDown():
                        if self.dragType == '':
                                #Define the drag type depending on the cursor position.
-                               if cursorXY >= radius * 1.1 and cursorXY <= radius * 1.3:
+                               if cursorXY >= radius * 1.1 and cursorXY <= radius * 1.3 and self.viewMode != 'GCode' and self.viewMode == 'Mixed':
                                        self.dragType = 'modelRotate'
                                        self.dragStart = math.atan2(cursorZ0[0], cursorZ0[1])
                                else:
@@ -794,7 +794,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
                glTranslate(self.parent.machineCenter.x, self.parent.machineCenter.y, 0)
                
                #Draw the rotate circle
-               if self.parent.objectsMaxV != None:
+               if self.parent.objectsMaxV != None and self.viewMode != 'GCode' and self.viewMode == 'Mixed':
                        glDisable(GL_LIGHTING)
                        glDisable(GL_CULL_FACE)
                        glEnable(GL_BLEND)