[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11840] branches/2-44-stable/blender/ source/blender/python/api2_2x/Armature.c: another problem with weakref fixed, replacing PyWeakref_NewProxy with PyWeakref_NewRef fixed, wish the C/ API docs explained the difference better.

Campbell Barton cbarton at metavr.com
Mon Aug 27 18:06:10 CEST 2007


Revision: 11840
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=11840
Author:   campbellbarton
Date:     2007-08-27 18:06:10 +0200 (Mon, 27 Aug 2007)

Log Message:
-----------
another problem with weakref fixed, replacing PyWeakref_NewProxy with PyWeakref_NewRef fixed, wish the C/API docs explained the difference better.

Modified Paths:
--------------
    branches/2-44-stable/blender/source/blender/python/api2_2x/Armature.c

Modified: branches/2-44-stable/blender/source/blender/python/api2_2x/Armature.c
===================================================================
--- branches/2-44-stable/blender/source/blender/python/api2_2x/Armature.c	2007-08-27 03:20:16 UTC (rev 11839)
+++ branches/2-44-stable/blender/source/blender/python/api2_2x/Armature.c	2007-08-27 16:06:10 UTC (rev 11840)
@@ -1361,7 +1361,7 @@
 		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;





More information about the Bf-blender-cvs mailing list