[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58693] trunk/blender/source/gameengine/ BlenderRoutines/KX_BlenderRenderTools.cpp: patch [#36233] Fix Halo and Billboard Normal and Behavior

Campbell Barton ideasman42 at gmail.com
Sun Jul 28 14:03:53 CEST 2013


Revision: 58693
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58693
Author:   campbellbarton
Date:     2013-07-28 12:03:53 +0000 (Sun, 28 Jul 2013)
Log Message:
-----------
patch [#36233] Fix Halo and Billboard Normal and Behavior
from Vitor Balbio (vitorbalbio)

Fixes billboard flipping (flipped normals and textures too)

Modified Paths:
--------------
    trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp

Modified: trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp
===================================================================
--- trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp	2013-07-28 11:43:11 UTC (rev 58692)
+++ trunk/blender/source/gameengine/BlenderRoutines/KX_BlenderRenderTools.cpp	2013-07-28 12:03:53 UTC (rev 58693)
@@ -225,7 +225,7 @@
 		}
 
 		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:




More information about the Bf-blender-cvs mailing list