diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-08-07 15:25:45 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-08-07 15:25:45 +0400 |
commit | 3adf5dda97b9e3df88857091a393244d9d5321a6 (patch) | |
tree | c96931f7e4cbda023b2eca30f6fe08be115492ff /source | |
parent | a1f46e1e32aca4c02384ee2c63f249548d4fbb1e (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.cpp | 2 |
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); |