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-14 11:59:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-05-14 11:59:44 +0400
commitd257586fe6d59f9a7c622b460fbe38a168fb5428 (patch)
tree48a84265c142ea1f7b7b96ce6dec1c5ed506ab3a /source/gameengine/Ketsji/KX_GameObject.cpp
parentd2cff7307d26ada0dd34949d0a9fbb3c37c72f19 (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.cpp4
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 */