Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-05-16 04:49:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-16 04:49:28 +0400
commit006ad4aaacc36a7e7fd1a8cd96e60a5e74cbfedd (patch)
tree929a9d1452a4901986c38f37c7e03774f591c7ca /source/gameengine/PyDoc
parent83006e51f845b2c5c36539373e036be3efaddc16 (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.py4
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
+"""