From 93f9fb4284b1ad9416207090fb97642a6a30971b Mon Sep 17 00:00:00 2001 From: daid303 Date: Thu, 13 Dec 2012 17:47:50 +0100 Subject: [PATCH] Do not show the rotate ring in GCode preview. --- Cura/gui/preview3d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/gui/preview3d.py b/Cura/gui/preview3d.py index 996d9734..9cc852e7 100644 --- a/Cura/gui/preview3d.py +++ b/Cura/gui/preview3d.py @@ -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) -- 2.30.2