X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=Cura%2Fgui%2Futil%2FpreviewTools.py;h=372d9cf2ff039bc3a3f6d16d4812ba043257665a;hb=6208201bafdeaf82883181471c6da3a41283cfe7;hp=c7f737c2da031a4e4205d8e4028381c1b537b05f;hpb=74effd729ed2977679b69ef5d61dcf58412519c5;p=cura.git diff --git a/Cura/gui/util/previewTools.py b/Cura/gui/util/previewTools.py index c7f737c2..372d9cf2 100644 --- a/Cura/gui/util/previewTools.py +++ b/Cura/gui/util/previewTools.py @@ -1,12 +1,12 @@ -__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License" from __future__ import absolute_import +__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License" import math import wx import numpy import OpenGL -OpenGL.ERROR_CHECKING = False +#OpenGL.ERROR_CHECKING = False from OpenGL.GLU import * from OpenGL.GL import * @@ -209,7 +209,7 @@ class toolRotate(object): glEnd() glTranslatef(1.1,0,0) glColor4ub(0,0,0,255) - opengl.glDrawStringCenter("%d" % (abs(self.dragEndAngle - self.dragStartAngle))) + opengl.glDrawStringCenter("%d" % (abs(self.dragEndAngle - self.dragStartAngle) + 0.5)) glColor4ub(255,64,64,255) glPopMatrix() else: