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-04-04 13:54:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-04-04 13:54:05 +0400
commitb6114be5e388a4f3a1edf75ccbcb7121e88cad33 (patch)
treeba16b72a1fd3af436ddbb5c200aa972e192fbab0 /source/gameengine/Expressions
parenta35a8f7a382e9f62834eaf355d448205665a07bc (diff)
include PyObjectPlus method in __dict__
Diffstat (limited to 'source/gameengine/Expressions')
-rw-r--r--source/gameengine/Expressions/PyObjectPlus.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp
index ac1871300d0..03afa62a6da 100644
--- a/source/gameengine/Expressions/PyObjectPlus.cpp
+++ b/source/gameengine/Expressions/PyObjectPlus.cpp
@@ -110,6 +110,9 @@ PyObject *PyObjectPlus::py_getattro(PyObject* attr)
{
PyObject *descr = PyDict_GetItem(Type.tp_dict, attr); \
if (descr == NULL) {
+ if (strcmp(PyString_AsString(attr), "__dict__")==0) {
+ return py_getattr_dict(NULL, Methods, NULL); /* no Attributes yet */
+ }
PyErr_SetString(PyExc_AttributeError, "attribute not found");
return NULL;
} else {