diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-07-23 19:45:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-07-23 19:45:23 +0400 |
commit | dcbe9ade7a8ca91258742e3ac3abefa1c8108e0f (patch) | |
tree | 7121df446446580cc6a90ea2e1d3d17ad3d32515 /source | |
parent | 8a1dbea3638fb94c57d457c1aa3867d454afb5ef (diff) |
Added NodeUpdateGS so GameObject Python api alignAxisToVect function,
Otherwise the rotation isn't applied.
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 185f456c83a..cdcba8abb4d 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -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; } } |