diff options
author | Michel Selten <michel@mselten.demon.nl> | 2003-05-20 23:02:09 +0400 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2003-05-20 23:02:09 +0400 |
commit | 0bebdabad2419466dff1203fe95fad0280a034b2 (patch) | |
tree | 2c4f4d222971462c96e8fe20eacf72ed5258dc0f /source/blender/python/api2_2x/Object.h | |
parent | 5930fe71629edb4190ec170b8583288970a115ae (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.h | 6 |
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; /*****************************************************************************/ |