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:
authorMichel Selten <michel@mselten.demon.nl>2003-05-20 23:02:09 +0400
committerMichel Selten <michel@mselten.demon.nl>2003-05-20 23:02:09 +0400
commit0bebdabad2419466dff1203fe95fad0280a034b2 (patch)
tree2c4f4d222971462c96e8fe20eacf72ed5258dc0f /source/blender/python/api2_2x/Object.h
parent5930fe71629edb4190ec170b8583288970a115ae (diff)
* Fixed a bug in Object.getSelected(). All the objects were returned in stead
of just the selected object(s). This bug was pointed out by Jacek Poplawski. * If there's already a PyObject of a certain object available, then don't create a new one, just return the specified object. * Updated the Object_getData function to return correct objects. So far it can return objects of type Camera, Curve, Lamp and Object.
Diffstat (limited to 'source/blender/python/api2_2x/Object.h')
-rw-r--r--source/blender/python/api2_2x/Object.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.h b/source/blender/python/api2_2x/Object.h
index 23a7c087e51..95ece9add6e 100644
--- a/source/blender/python/api2_2x/Object.h
+++ b/source/blender/python/api2_2x/Object.h
@@ -89,7 +89,11 @@ The active object is the first in the list, if visible";
/*****************************************************************************/
typedef struct {
PyObject_HEAD
- struct Object *object;
+ struct Object * object;
+
+ /* points to the data. This only is set when there's a valid PyObject */
+ /* that points to the linked data. */
+ PyObject * data;
} C_Object;
/*****************************************************************************/