Setup for Armature weak ref list was missing from some places where
we execute py code.  This confused the interpreter and gave random
attribute/tuple parse errors.
Changed name of weak ref list to "__arm_weakrefs" to avoid name
collision with user variables.
This commit is contained in:
Stephen Swaney
2007-01-31 03:12:26 +00:00
parent 9cf602b949
commit f5a48dfd31
4 changed files with 112 additions and 51 deletions

View File

@@ -59,6 +59,9 @@
#define Py_RETURN_TRUE return PyBool_FromLong(1)
#endif
/* name of list of Armature weak refs built into __main__ */
#define ARM_WEAKREF_LIST_NAME "__arm_weakrefs"
int EXPP_FloatsAreEqual(float A, float B, int floatSteps);
int EXPP_VectorsAreEqual(float *vecA, float *vecB, int size, int floatSteps);