chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change how the engine is interfaced from the python code. Put the GCode viewer in...
[cura.git]
/
Cura
/
gui
/
util
/
previewTools.py
diff --git
a/Cura/gui/util/previewTools.py
b/Cura/gui/util/previewTools.py
index cd94ded0589e4eb51c4dcac53ed6e32136edd4ef..372d9cf2ff039bc3a3f6d16d4812ba043257665a 100644
(file)
--- a/
Cura/gui/util/previewTools.py
+++ b/
Cura/gui/util/previewTools.py
@@
-6,7
+6,7
@@
import wx
import numpy
import OpenGL
import numpy
import OpenGL
-OpenGL.ERROR_CHECKING = False
+
#
OpenGL.ERROR_CHECKING = False
from OpenGL.GLU import *
from OpenGL.GL import *
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)
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:
glColor4ub(255,64,64,255)
glPopMatrix()
else: