diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index 1fc0bff2af2..293b9a2f3f4 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -1508,7 +1508,7 @@ static PyObject *NMesh_getVertexInfluences( PyObject * self, PyObject * args ) /* Build the list only with weights and names of the influent bones */ for( i = 0; i < totinfluences; i++, sweight++ ) { - bDeformGroup *defgroup = BLI_findlink( &object->defbase, + bDeformGroup *defgroup = (bDeformGroup *) BLI_findlink( &object->defbase, sweight->def_nr ); if( defgroup ) PyList_Append( influence_list, Py_BuildValue( "[sf]",