diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-06-12 16:56:12 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-06-12 16:56:12 +0400 |
commit | 1c2ce9535caa7ef0ed70aea5bd25c0f281322cf6 (patch) | |
tree | 8c8203d3b4d9ce40fc52aec23099c99f8d82c759 /source/gameengine/Ketsji/KX_Camera.cpp | |
parent | 96c5f36eff4ee85aad90c507070447a6ad5bdda9 (diff) |
use contains for ListValue and KX_GameObject types (has_key is deprecated by python)
eg.
if 'prop' in gameOb: ...
if 'GameOb' in sce.objects: ...
Diffstat (limited to 'source/gameengine/Ketsji/KX_Camera.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_Camera.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.cpp b/source/gameengine/Ketsji/KX_Camera.cpp index ba4d6e22872..40f6c99c03c 100644 --- a/source/gameengine/Ketsji/KX_Camera.cpp +++ b/source/gameengine/Ketsji/KX_Camera.cpp @@ -547,12 +547,15 @@ PyTypeObject KX_Camera::Type = { 0, 0, py_base_repr, - 0,0, + 0, + &KX_GameObject::Sequence, &KX_GameObject::Mapping, 0,0,0, py_base_getattro, py_base_setattro, - 0,0,0,0,0,0,0,0,0, + 0, + Py_TPFLAGS_DEFAULT, + 0,0,0,0,0,0,0, Methods }; |