forked from bartvdbraak/blender
Added NodeUpdateGS so GameObject Python api alignAxisToVect function,
Otherwise the rotation isn't applied.
This commit is contained in:
parent
8a1dbea363
commit
dcbe9ade7a
@ -1470,6 +1470,7 @@ PyObject* KX_GameObject::PyAlignAxisToVect(PyObject* self,
|
||||
if (PyVecTo(pyvect, vect))
|
||||
{
|
||||
AlignAxisToVect(vect,axis,fac);
|
||||
NodeUpdateGS(0.f,true);
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user