diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2007-01-25 18:19:28 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2007-01-25 18:19:28 +0300 |
commit | ea8189389cc779b5229836c0030549be9d0256f3 (patch) | |
tree | d4e2b587e09ddcb3444d90b68add35ed6f4b5385 /source/blender/python/api2_2x/Armature.h | |
parent | 8c2af0a5d0a37f3c06a0ccf6938dd3b0bc54fe55 (diff) |
Bug fix for:
[ #5000 ] Changin EditMode in Script wrecks memory
Armatures create weakreferences in __main__.__dict__. When Window.Editmode is called, the weaklist it iterated over and armatures are updated.
Diffstat (limited to 'source/blender/python/api2_2x/Armature.h')
-rw-r--r-- | source/blender/python/api2_2x/Armature.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Armature.h b/source/blender/python/api2_2x/Armature.h index 8115207dc3b..f29254e9aa6 100644 --- a/source/blender/python/api2_2x/Armature.h +++ b/source/blender/python/api2_2x/Armature.h @@ -56,11 +56,14 @@ typedef struct { PyObject_HEAD struct bArmature * armature; BPy_BonesDict *Bones; //BPy_BonesDict + PyObject *weaklist; } BPy_Armature; //-------------------VISIBLE PROTOTYPES------------------------- PyObject *PyArmature_FromArmature(struct bArmature *armature); struct bArmature *PyArmature_AsArmature(BPy_Armature *py_armature); +PyObject * Armature_RebuildEditbones(PyObject *pyarmature); +PyObject *Armature_RebuildBones(PyObject *pyarmature); int Armature_CheckPyObject( PyObject * pyobj ); struct bArmature *Armature_FromPyObject( PyObject * py_obj ); |