From 1448499d70a3c1f9dd418cdffb42fb187e7d57a7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 28 Jul 2013 12:03:53 +0000 Subject: patch [#36233] Fix Halo and Billboard Normal and Behavior from Vitor Balbio (vitorbalbio) Fixes billboard flipping (flipped normals and textures too) --- source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine/BlenderRoutines') 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: -- cgit v1.2.3