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);


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to