forked from bartvdbraak/blender
BGE fix: alignToVect() fac parameter clamping should obviously be done the other way round
This commit is contained in:
parent
a1f46e1e32
commit
3adf5dda97
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user