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-21 23:54:19 +0400
committerMichel Selten <michel@mselten.demon.nl>2003-05-21 23:54:19 +0400
commit000f92e204b54d117789209b00fee88f279be6e1 (patch)
tree9cde1c1fe9937ed8ec74605e7088079d4789c0f2 /source/blender/python/api2_2x/Object.h
parent64f0bdd9546df2662824c8a54a96db7a9bff1110 (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.h10
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;
/*****************************************************************************/