From a90cdd4993a5f03b5cf6b9638173a03176d45e0b Mon Sep 17 00:00:00 2001 From: daid Date: Wed, 25 Apr 2012 16:30:51 +0200 Subject: [PATCH] Solve problem where X/Y/Z text is shown before camera if are actually behind camera --- Cura/gui/opengl.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.30.2