diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index 8561f9d1b55..296eb6296a7 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -49,6 +49,7 @@ struct bConstraintOb; /* DNA_constraint_types.h */ struct bConstraintTarget; /* DNA_constraint_types.h*/ struct Script; /* DNA_screen_types.h */ struct BPyMenu; +struct bContext; #ifdef __cplusplus extern "C" { #endif diff --git a/source/blender/python/intern/bpy_idprop.c b/source/blender/python/intern/bpy_idprop.c index e7e8a5fd8b5..a5fca06d402 100644 --- a/source/blender/python/intern/bpy_idprop.c +++ b/source/blender/python/intern/bpy_idprop.c @@ -60,8 +60,8 @@ static char *BPy_IDProperty_Map_ValidateAndCreate(char *name, IDProperty *group, } else if (PyLong_Check(ob)) { val.i = (int) PyLong_AsLong(ob); prop = IDP_New(IDP_INT, val, name); - } else if (PyUnicode_Check(ob)) { - val.str = _PyUnicode_AsString(ob); + } else if (/*PyUnicode_Check(ob)*/0) { + //val.str = _PyUnicode_AsString(ob); prop = IDP_New(IDP_STRING, val, name); } else if (PySequence_Check(ob)) { PyObject *item; @@ -105,7 +105,7 @@ static char *BPy_IDProperty_Map_ValidateAndCreate(char *name, IDProperty *group, for (i=0; i