[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [13470] trunk/blender/source/blender/ python/BPY_interface.c: PyConstraint Bugfix:
Joshua Leung
aligorith at gmail.com
Wed Jan 30 10:29:40 CET 2008
Revision: 13470
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=13470
Author: aligorith
Date: 2008-01-30 10:29:40 +0100 (Wed, 30 Jan 2008)
Log Message:
-----------
PyConstraint Bugfix:
Uncommented armature weakrefs stuff for PyConstraints. This should fix some erratic error messages a user found with these a few months ago.
Modified Paths:
--------------
trunk/blender/source/blender/python/BPY_interface.c
Modified: trunk/blender/source/blender/python/BPY_interface.c
===================================================================
--- trunk/blender/source/blender/python/BPY_interface.c 2008-01-30 08:31:07 UTC (rev 13469)
+++ trunk/blender/source/blender/python/BPY_interface.c 2008-01-30 09:29:40 UTC (rev 13470)
@@ -1318,14 +1318,10 @@
PyList_SET_ITEM(tarmats, index, tarmat);
}
-
-/* since I can't remember what the armature weakrefs do, I'll just leave this here
- commented out. This function was based on pydrivers, and it might still be relevent.
- if( !setup_armature_weakrefs()){
- fprintf( stderr, "Oops - weakref dict setup\n");
- return result;
+ if (!setup_armature_weakrefs()) {
+ fprintf(stderr, "Oops - weakref dict setup\n");
+ return;
}
-*/
retval = RunPython(con->text, globals);
@@ -1471,13 +1467,11 @@
tarmat = newMatrixObject((float *)ct->matrix, 4, 4, Py_NEW);
idprop = BPy_Wrap_IDProperty( NULL, con->prop, NULL);
-/* since I can't remember what the armature weakrefs do, I'll just leave this here
- commented out. This function was based on pydrivers, and it might still be relevent.
- if( !setup_armature_weakrefs()){
- fprintf( stderr, "Oops - weakref dict setup\n");
- return result;
+ if (!setup_armature_weakrefs()) {
+ fprintf(stderr, "Oops - weakref dict setup\n");
+ return;
}
-*/
+
retval = RunPython(con->text, globals);
if (retval == NULL) {
More information about the Bf-blender-cvs
mailing list