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:
authorStephen Swaney <sswaney@centurytel.net>2007-01-31 06:12:26 +0300
committerStephen Swaney <sswaney@centurytel.net>2007-01-31 06:12:26 +0300
commitf5a48dfd31d8722f7a68199dd59d3a7e45f6d3ea (patch)
treead9200f7ca3f96b4ef8f444d108ac60ab2b7e9de /source/blender/python/api2_2x/gen_utils.h
parent9cf602b9494857d98aec2c045492377005cdcf6b (diff)
Bugfix for #5000
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.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r--source/blender/python/api2_2x/gen_utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h
index 04eddebddc1..488975ce31c 100644
--- a/source/blender/python/api2_2x/gen_utils.h
+++ b/source/blender/python/api2_2x/gen_utils.h
@@ -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);