Solve problem where X/Y/Z text is shown before camera if are actually behind camera
This commit is contained in:
parent
bfaebcce3e
commit
a90cdd4993
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue