diff options
author | Bastien Montagne <bastien@blender.org> | 2021-09-23 14:46:55 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-09-23 14:48:41 +0300 |
commit | 4d2ca33a8a7d08897a273031099da9b7bcaa11ff (patch) | |
tree | 65ee3094fb3c1c7ecee28f39f501e10a651a8cc9 /source/blender/windowmanager/WM_api.h | |
parent | aadb7ef0718af9c54fa97d0ce10e3967a80cea2e (diff) |
LibLink: Modify WM API to link/append one ID to take flag parameter.
There is no reason to lock behavior into a specific configuration in
those calls, make them properly configurable like the rest of the
link/append code.
This also enable users of those functions to activate 'ID reuse'
behavior.
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 6794b1f4091..c5482a729c3 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -212,14 +212,16 @@ struct ID *WM_file_link_datablock(struct Main *bmain, struct View3D *v3d, const char *filepath, const short id_code, - const char *id_name); + const char *id_name, + int flag); struct ID *WM_file_append_datablock(struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer, struct View3D *v3d, const char *filepath, const short id_code, - const char *id_name); + const char *id_name, + int flag); void WM_lib_reload(struct Library *lib, struct bContext *C, struct ReportList *reports); /* mouse cursors */ |