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-08-10 14:03:37 +0400
committerMichel Selten <michel@mselten.demon.nl>2003-08-10 14:03:37 +0400
commit71638673951ba1967eddbeb502a0c0cf1416c596 (patch)
tree9d67266ab5a415ba271c023b1620e8cc22c64565 /source/blender/python/api2_2x/Object.h
parent84f2b0846162ac4489e4f99096d250200bde275f (diff)
* Fix crash in the getParent() and getTracked() methods of the Python API.
This crash was reported by Jean-Michel Soler (jms). Problem was that I was trying to be a little too intelligent. I kept a reference to created PyObjects which at some point apparently fails. Keeping the object references is not necessary. Now we just create a new PyObject when necessary and let Python handle the reference counts.
Diffstat (limited to 'source/blender/python/api2_2x/Object.h')
-rw-r--r--source/blender/python/api2_2x/Object.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/python/api2_2x/Object.h b/source/blender/python/api2_2x/Object.h
index d562ed0b404..5cf7513a6e9 100644
--- a/source/blender/python/api2_2x/Object.h
+++ b/source/blender/python/api2_2x/Object.h
@@ -71,22 +71,6 @@ struct BPy_Object;
typedef struct {
PyObject_HEAD
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;
-
- /* points to the parent object. This is only set when there's a valid */
- /* PyObject (already created at some point). */
- struct BPy_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 BPy_Object * track;
-
- /* points to the ipo object. This is only set when there's a valid */
- /* PyObject (already created at some point). */
- PyObject * ipo;
} BPy_Object;
#endif /* EXPP_OBJECT_H */