diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-08-25 17:54:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-08-25 17:54:56 +0400 |
commit | 9521fa94569b0ab1fe5c9f451e8abf7dd2290b13 (patch) | |
tree | f96cf53c1ac46348e9437c0a00c4863ed7da81a0 /source/gameengine/Ketsji/KX_GameObject.h | |
parent | 855974dad931bcba8a63260d1f642da49902d569 (diff) |
remove gameOb.has_key(key) method from KX_GameObject and ListValue since python 3.x removes has_key from dictionaries.
Instead use __contains__, eg.
if key in gameOb: ...
Mathutils returns from PyMath.cpp were incorrectly using wrapped Mathutils types. Wrapped types should only be used with a callback now.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h index ba7451fdeef..a5cd084b4d4 100644 --- a/source/gameengine/Ketsji/KX_GameObject.h +++ b/source/gameengine/Ketsji/KX_GameObject.h @@ -844,7 +844,6 @@ public: /* Dict access */ KX_PYMETHOD_VARARGS(KX_GameObject,get); - KX_PYMETHOD_O(KX_GameObject,has_key); /* attributes */ static PyObject* pyattr_get_name(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef); |