forked from bartvdbraak/blender
-- Fix segfault when callign Blender.Armature.Get() with no parameters
This commit is contained in:
parent
409f60d605
commit
beb80aa609
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user