chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfaebcc
)
Solve problem where X/Y/Z text is shown before camera if are actually behind camera
author
daid
<daid303@gmail.com>
Wed, 25 Apr 2012 14:30:51 +0000
(16:30 +0200)
committer
daid
<daid303@gmail.com>
Wed, 25 Apr 2012 14:30:51 +0000
(16:30 +0200)
Cura/gui/opengl.py
patch
|
blob
|
history
diff --git
a/Cura/gui/opengl.py
b/Cura/gui/opengl.py
index e235699de7d5706bd6a2b68a3c7fd43285e77989..f7331aadebe7f4014fc6ae8c9d4aaef60ed71b08 100644
(file)
--- a/
Cura/gui/opengl.py
+++ b/
Cura/gui/opengl.py
@@
-145,6
+145,8
@@
def DrawMachine(machineSize):
def ResetMatrixRotationAndScale():
\r
matrix = glGetFloatv(GL_MODELVIEW_MATRIX)
\r
noZ = False
\r
+ if matrix[3][2] > 0:
\r
+ return False
\r
scale2D = matrix[0][0]
\r
matrix[0][0] = 1.0
\r
matrix[1][0] = 0.0
\r