[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15997] trunk/blender/source/gameengine/ Ketsji/KX_GameObject.cpp: BGE fix: alignToVect() fac parameter clamping should obviously be done the other way round

Benoit Bolsee benoit.bolsee at online.be
Thu Aug 7 13:26:36 CEST 2008


Revision: 15997
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15997
Author:   ben2610
Date:     2008-08-07 13:25:45 +0200 (Thu, 07 Aug 2008)

Log Message:
-----------
BGE fix: alignToVect() fac parameter clamping should obviously be done the other way round

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp	2008-08-07 09:56:31 UTC (rev 15996)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp	2008-08-07 11:25:45 UTC (rev 15997)
@@ -1491,7 +1491,7 @@
 		if (PyVecTo(pyvect, vect))
 		{
 			if (fac<=0.0) Py_RETURN_NONE; // Nothing to do.
-			if (fac< 1.0) fac= 1.0;
+			if (fac> 1.0) fac= 1.0;
 			
 			AlignAxisToVect(vect,axis,fac);
 			NodeUpdateGS(0.f,true);





More information about the Bf-blender-cvs mailing list