From: daid Date: Wed, 25 Apr 2012 14:30:51 +0000 (+0200) Subject: Solve problem where X/Y/Z text is shown before camera if are actually behind camera X-Git-Tag: RC3~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=a90cdd4993a5f03b5cf6b9638173a03176d45e0b;p=cura.git Solve problem where X/Y/Z text is shown before camera if are actually behind camera --- diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index e235699d..f7331aad 100644 --- a/Cura/gui/opengl.py +++ b/Cura/gui/opengl.py @@ -145,6 +145,8 @@ def DrawMachine(machineSize): def ResetMatrixRotationAndScale(): matrix = glGetFloatv(GL_MODELVIEW_MATRIX) noZ = False + if matrix[3][2] > 0: + return False scale2D = matrix[0][0] matrix[0][0] = 1.0 matrix[1][0] = 0.0