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:
authorKen Hughes <khughes@pacific.edu>2005-12-04 23:39:56 +0300
committerKen Hughes <khughes@pacific.edu>2005-12-04 23:39:56 +0300
commitbeb80aa60917d64cc6217062e9221546e439f68d (patch)
treeeff0ad1009ea520cd3acbec44c03d23609f99e81 /source/blender/python/api2_2x/Armature.c
parent409f60d605c36c9f79a18f69fdacad268adc0c98 (diff)
-- Fix segfault when callign Blender.Armature.Get() with no parameters
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 23fe3a4158b..f9aa80c5aaf 100644
--- a/source/blender/python/api2_2x/Armature.c
+++ b/source/blender/python/api2_2x/Armature.c
@@ -1130,7 +1130,7 @@ static PyObject *M_Armature_Get(PyObject * self, PyObject * args)
goto RuntimeError;
}
if(size == 0){ //GET ALL ARMATURES
- data = &(G.main->armature).first; //get the first data ID from the armature library
+ data = G.main->armature.first; //get the first data ID from the armature library
while (data){
py_armature = PyArmature_FromArmature(data); //*new*
sprintf(buffer, "%s", ((bArmature*)data)->id.name +2);