chiark / gitweb /
Solve problem where X/Y/Z text is shown before camera if are actually behind camera
authordaid <daid303@gmail.com>
Wed, 25 Apr 2012 14:30:51 +0000 (16:30 +0200)
committerdaid <daid303@gmail.com>
Wed, 25 Apr 2012 14:30:51 +0000 (16:30 +0200)
Cura/gui/opengl.py

index e235699de7d5706bd6a2b68a3c7fd43285e77989..f7331aadebe7f4014fc6ae8c9d4aaef60ed71b08 100644 (file)
@@ -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