Skip to content

Commit

Permalink
Merge branch 'upbge-v0.36-release' of github.com:UPBGE/upbge into upb…
Browse files Browse the repository at this point in the history
…ge-v0.36-release
  • Loading branch information
lordloki committed Jun 30, 2023
2 parents 69d2cc2 + cd1d14e commit 0393dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_Camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ EXP_PYMETHODDEF_DOC_O(KX_Camera, getScreenPosition, "getScreenPosition()\n")
vect[0] = (win[0] - viewport[0]) / viewport[2];
vect[1] = (win[1] - viewport[1]) / viewport[3];

//vect[1] = 1.0f - vect[1]; // to follow Blender window coordinate system (Top-Down)
vect[1] = 1.0f - vect[1]; // to follow Blender window coordinate system (Top-Down)

/* Check if the object is behind the camera */
/* To avoid having screenpos "twice", one in front of cam, the other
Expand Down

0 comments on commit 0393dd1

Please sign in to comment.