Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-08-07 15:25:45 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2008-08-07 15:25:45 +0400
commit3adf5dda97b9e3df88857091a393244d9d5321a6 (patch)
treec96931f7e4cbda023b2eca30f6fe08be115492ff /source
parenta1f46e1e32aca4c02384ee2c63f249548d4fbb1e (diff)
BGE fix: alignToVect() fac parameter clamping should obviously be done the other way round
Diffstat (limited to 'source')
-rw-r--r--source/gameengine/Ketsji/KX_GameObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp
index 661bf17ef23..989cdabd491 100644
--- a/source/gameengine/Ketsji/KX_GameObject.cpp
+++ b/source/gameengine/Ketsji/KX_GameObject.cpp
@@ -1491,7 +1491,7 @@ PyObject* KX_GameObject::PyAlignAxisToVect(PyObject* self,
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);