diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-28 16:03:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-28 16:03:53 +0400 |
commit | 1448499d70a3c1f9dd418cdffb42fb187e7d57a7 (patch) | |
tree | a3400f4d6c6378265298ddcceaea9e77329efb84 | |
parent | 46aea9c0c8969a3cacdda9d43ed3b8596ed725e9 (diff) |
patch [#36233] Fix Halo and Billboard Normal and Behavior
from Vitor Balbio (vitorbalbio)
Fixes billboard flipping (flipped normals and textures too)
-rw-r--r-- | source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp b/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp index 1fcda74d3bd..a6b71e0bc43 100644 --- a/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp +++ b/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp @@ -225,7 +225,7 @@ void KX_BlenderRenderTools::applyTransform(RAS_IRasterizer* rasty,double* oglmat } MT_Vector3 left = dir.normalized(); - dir = (left.cross(up)).normalized(); + dir = (up.cross(left)).normalized(); // we have calculated the row vectors, now we keep // local scaling into account: |