diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-05-16 04:49:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-05-16 04:49:28 +0400 |
commit | 006ad4aaacc36a7e7fd1a8cd96e60a5e74cbfedd (patch) | |
tree | 929a9d1452a4901986c38f37c7e03774f591c7ca /source/gameengine/PyDoc | |
parent | 83006e51f845b2c5c36539373e036be3efaddc16 (diff) |
BGE Py API Bugfixes
KX_GameObject.getVelocity() would set an error but nor return an error value when an non vector argument was given.
KX_PythonSeq_Type was not initialized with PyType_Ready which could crash blender when inspecting the type.
Diffstat (limited to 'source/gameengine/PyDoc')
-rw-r--r-- | source/gameengine/PyDoc/GameTypes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/PyDoc/GameTypes.py b/source/gameengine/PyDoc/GameTypes.py index d58f9087a9f..b5b0839c0f4 100644 --- a/source/gameengine/PyDoc/GameTypes.py +++ b/source/gameengine/PyDoc/GameTypes.py @@ -5544,7 +5544,7 @@ class KX_Camera(KX_GameObject): """ import types attrs = [] -for name, val in __builtins__.locals().items(): +for name, val in locals().items(): if name.startswith('__'): continue if type(val) == types.ClassType: @@ -5554,4 +5554,4 @@ for name, val in __builtins__.locals().items(): for a in attrs: print a -"""
\ No newline at end of file +""" |