Solve problem where X/Y/Z text is shown before camera if are actually behind camera

This commit is contained in:
daid 2012-04-25 16:30:51 +02:00
parent bfaebcce3e
commit a90cdd4993

View file

@ -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