From 02baf30e55b1159bb9e347998caaa8fac12afb81 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 6 Sep 2006 09:51:30 +0000 Subject: New feature: imporant missing option for use of Libraries: access to to the file path where library is read from. In Outliner, choose new view mode "Libraries". A ctrl+click on the library name then allows to change the file name or path. Note that when you change the file name, nothing is being re-read or re-linked. Only after saving the .blend file and reading it back the new library is used. This feature allows to cleanup library usage. You can make files relative, or reorganize a project. Just keep in mind that you cannot use this feature to fix .blend files that link to non-existing other files. That because the lost data is actually not read at all, so cannot be saved either. Currently, library errors are only printed in the console... quite important to keep track of when using Libraries. Implementation note: this Outliner view mode can become expanded to a full "Database view", showing something similar as SHIFT+F4 databrowse does now. --- source/blender/blenkernel/BKE_library.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenkernel/BKE_library.h') diff --git a/source/blender/blenkernel/BKE_library.h b/source/blender/blenkernel/BKE_library.h index ac438ec95bd..c51ebe25226 100644 --- a/source/blender/blenkernel/BKE_library.h +++ b/source/blender/blenkernel/BKE_library.h @@ -50,6 +50,8 @@ void id_us_plus(struct ID *id); int new_id(struct ListBase *lb, struct ID *id, const char *name); struct ListBase *wich_libbase(struct Main *mainlib, short type); + +#define MAX_LIBARRAY 40 int set_listbasepointers(struct Main *main, struct ListBase **lb); void free_libblock(struct ListBase *lb, void *idv); -- cgit v1.2.3