[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [42998] branches/soc-2011-cucumber/source/ gameengine/Ketsji/KX_FontObject.cpp: BGE Font Object - fix for offset

Dalai Felinto dfelinto at gmail.com
Fri Dec 30 12:15:44 CET 2011


Revision: 42998
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42998
Author:   dfelinto
Date:     2011-12-30 11:15:39 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
BGE Font Object - fix for offset
(scaling also has to be taken into account here)

Modified Paths:
--------------
    branches/soc-2011-cucumber/source/gameengine/Ketsji/KX_FontObject.cpp

Modified: branches/soc-2011-cucumber/source/gameengine/Ketsji/KX_FontObject.cpp
===================================================================
--- branches/soc-2011-cucumber/source/gameengine/Ketsji/KX_FontObject.cpp	2011-12-30 11:02:59 UTC (rev 42997)
+++ branches/soc-2011-cucumber/source/gameengine/Ketsji/KX_FontObject.cpp	2011-12-30 11:15:39 UTC (rev 42998)
@@ -138,7 +138,7 @@
 	memcpy(mat, this->GetOpenGLMatrix(), sizeof(double)*16);
 
 	/* Account for offset */
-	MT_Vector3 offset = this->NodeGetWorldOrientation() * m_offset;
+	MT_Vector3 offset = this->NodeGetWorldOrientation() * m_offset * this->NodeGetWorldScaling();
 	mat[12] += offset[0]; mat[13] += offset[1]; mat[14] += offset[2];
 
 	/* Orient the spacing vector */




More information about the Bf-blender-cvs mailing list