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

Dalai Felinto dfelinto at gmail.com
Fri Dec 30 12:03:02 CET 2011


Revision: 42997
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=42997
Author:   dfelinto
Date:     2011-12-30 11:02:59 +0000 (Fri, 30 Dec 2011)
Log Message:
-----------
Font Object Multiline fix.
The offset was totally wrong when object had scale[1] != 1

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 10:20:29 UTC (rev 42996)
+++ branches/soc-2011-cucumber/source/gameengine/Ketsji/KX_FontObject.cpp	2011-12-30 11:02:59 UTC (rev 42997)
@@ -143,7 +143,7 @@
 
 	/* Orient the spacing vector */
 	MT_Vector3 spacing = MT_Vector3(0, m_fsize*m_line_spacing, 0);
-	spacing =this->NodeGetWorldOrientation() * spacing;
+	spacing = this->NodeGetWorldOrientation() * spacing * this->NodeGetWorldScaling()[1];
 
 	/* Draw each line, taking spacing into consideration */
 	for(int i=0; i<m_text.size(); ++i)




More information about the Bf-blender-cvs mailing list