From beb80aa60917d64cc6217062e9221546e439f68d Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Sun, 4 Dec 2005 20:39:56 +0000 Subject: -- Fix segfault when callign Blender.Armature.Get() with no parameters --- source/blender/python/api2_2x/Armature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/api2_2x/Armature.c') 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); -- cgit v1.2.3