Merged changes in the trunk up to revision 45133.
Conflicts resolved: source/blender/blenloader/intern/readfile.c source/blender/blenloader/intern/writefile.c source/blender/bmesh/intern/bmesh_construct.c source/blender/bmesh/intern/bmesh_mesh_conv.c source/blender/bmesh/intern/bmesh_mesh_conv.h source/blender/editors/interface/interface_templates.c source/blender/editors/interface/resources.c source/blender/editors/mesh/bmesh_select.c source/blender/editors/mesh/bmesh_tools.c source/blender/editors/space_view3d/drawobject.c source/blender/render/intern/source/shadeoutput.c
This commit is contained in:
@@ -73,12 +73,17 @@ PyDoc_STRVAR(bpy_script_paths_doc,
|
||||
static PyObject *bpy_script_paths(PyObject *UNUSED(self))
|
||||
{
|
||||
PyObject *ret = PyTuple_New(2);
|
||||
PyObject *item;
|
||||
char *path;
|
||||
|
||||
path = BLI_get_folder(BLENDER_SYSTEM_SCRIPTS, NULL);
|
||||
PyTuple_SET_ITEM(ret, 0, PyUnicode_FromString(path?path:""));
|
||||
item = PyUnicode_DecodeFSDefault(path ? path : "");
|
||||
BLI_assert(item != NULL);
|
||||
PyTuple_SET_ITEM(ret, 0, item);
|
||||
path = BLI_get_folder(BLENDER_USER_SCRIPTS, NULL);
|
||||
PyTuple_SET_ITEM(ret, 1, PyUnicode_FromString(path?path:""));
|
||||
item = PyUnicode_DecodeFSDefault(path ? path : "");
|
||||
BLI_assert(item != NULL);
|
||||
PyTuple_SET_ITEM(ret, 1, item);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@@ -202,7 +207,7 @@ static PyObject *bpy_resource_path(PyObject *UNUSED(self), PyObject *args, PyObj
|
||||
|
||||
path = BLI_get_folder_version(folder_id, (major * 100) + minor, FALSE);
|
||||
|
||||
return PyUnicode_DecodeFSDefault(path);
|
||||
return PyUnicode_DecodeFSDefault(path ? path : "");
|
||||
}
|
||||
|
||||
static PyMethodDef meth_bpy_script_paths =
|
||||
|
||||
Reference in New Issue
Block a user