diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-05-14 11:59:44 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-05-14 11:59:44 +0400 |
commit | d257586fe6d59f9a7c622b460fbe38a168fb5428 (patch) | |
tree | 48a84265c142ea1f7b7b96ce6dec1c5ed506ab3a /source/gameengine/Ketsji/KX_GameObject.cpp | |
parent | d2cff7307d26ada0dd34949d0a9fbb3c37c72f19 (diff) |
BGE Py API
scene.active_camera can now be set so you can more easily set the current camera from python scripts without using an actuator.
ConvertPythonToCamera utility function to get a camera from a python string or KX_Camera type.
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 4d01d96ced4..fe9fb8bb583 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -1819,9 +1819,7 @@ PyObject* KX_GameObject::py_getattro_dict() { int KX_GameObject::py_setattro(PyObject *attr, PyObject *value) // py_setattro method { - int ret; - - ret= py_setattro__internal(attr, value); + int ret= py_setattro__internal(attr, value); if (ret==PY_SET_ATTR_SUCCESS) { /* remove attribute in our own dict to avoid double ups */ |