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:
authorCampbell Barton <ideasman42@gmail.com>2007-08-27 20:09:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-08-27 20:09:02 +0400
commitca843fd2f873a774e5faea4a82bde03c96594081 (patch)
tree3314df0a5674769e617cd54d221e14322a4fe8ca /source/blender/python/api2_2x/Armature.c
parent93b5553c9c04ee8cc5dde4c3530f5527e0848691 (diff)
armature weakref evilness again, using editmode in python is not the best.
replacing PyWeakref_NewProxy with PyWeakref_NewRef fixes this problem. list(bpy.data.armatures) # would mess up weakrefs [arm for arm in bpy.data.armatures] # didnt.
Diffstat (limited to 'source/blender/python/api2_2x/Armature.c')
-rw-r--r--source/blender/python/api2_2x/Armature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Armature.c b/source/blender/python/api2_2x/Armature.c
index 0a616e2b9fe..1ad5938c17e 100644
--- a/source/blender/python/api2_2x/Armature.c
+++ b/source/blender/python/api2_2x/Armature.c
@@ -1358,7 +1358,7 @@ PyObject *Armature_CreatePyObject(struct bArmature *armature)
goto RuntimeError;
}
- weakref = PyWeakref_NewProxy((PyObject*)py_armature, arm_weakref_callback_weakref_dealloc__pyfunc);
+ weakref = PyWeakref_NewRef((PyObject*)py_armature, arm_weakref_callback_weakref_dealloc__pyfunc);
if (PyList_Append(armlist, weakref) == -1){
printf("Oops - list-append failed\n");
goto RuntimeError;