diff options
author | Michel Selten <michel@mselten.demon.nl> | 2003-05-21 23:54:19 +0400 |
---|---|---|
committer | Michel Selten <michel@mselten.demon.nl> | 2003-05-21 23:54:19 +0400 |
commit | 000f92e204b54d117789209b00fee88f279be6e1 (patch) | |
tree | 9cde1c1fe9937ed8ec74605e7088079d4789c0f2 /source/blender/python/api2_2x/Object.h | |
parent | 64f0bdd9546df2662824c8a54a96db7a9bff1110 (diff) |
* Implemented more of the Object module.
* Keep a Python Object reference for parent and track objects when available.
Diffstat (limited to 'source/blender/python/api2_2x/Object.h')
-rw-r--r-- | source/blender/python/api2_2x/Object.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Object.h b/source/blender/python/api2_2x/Object.h index 95ece9add6e..365d63953d4 100644 --- a/source/blender/python/api2_2x/Object.h +++ b/source/blender/python/api2_2x/Object.h @@ -87,6 +87,8 @@ The active object is the first in the list, if visible"; /*****************************************************************************/ /* Python C_Object structure definition. */ /*****************************************************************************/ +struct C_Object; + typedef struct { PyObject_HEAD struct Object * object; @@ -94,6 +96,14 @@ typedef struct { /* points to the data. This only is set when there's a valid PyObject */ /* that points to the linked data. */ PyObject * data; + + /* points to the parent object. This is only set when there's a valid */ + /* PyObject (already created at some point). */ + struct C_Object * parent; + + /* points to the object that is tracking this object. This is only set */ + /* when there's a valid PyObject (already created at some point). */ + struct C_Object * track; } C_Object; /*****************************************************************************/ |