diff options
author | Ton Roosendaal <ton@blender.org> | 2006-09-06 13:51:30 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-09-06 13:51:30 +0400 |
commit | 02baf30e55b1159bb9e347998caaa8fac12afb81 (patch) | |
tree | 0580882d0f65b0d9e7ccb941aa46ae60f996a1ea /source/blender/blenloader | |
parent | 6f47e5fa84f80739e5fb19e08cbe472eb42f7f32 (diff) |
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.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 09b040be731..6ece27c2e46 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -384,7 +384,7 @@ static void read_libraries(FileData *basefd, ListBase *mainlist); static void add_main_to_main(Main *mainvar, Main *from) { - ListBase *lbarray[100], *fromarray[100]; // define in library.c too + ListBase *lbarray[MAX_LIBARRAY], *fromarray[MAX_LIBARRAY]; int a; a= set_listbasepointers(mainvar, lbarray); @@ -434,7 +434,7 @@ static void split_libdata(ListBase *lb, Main *first) void blo_split_main(ListBase *mainlist) { Main *mainl= mainlist->first; - ListBase *lbarray[30]; + ListBase *lbarray[MAX_LIBARRAY]; Library *lib; int i; @@ -6260,7 +6260,7 @@ static void expand_sound(FileData *fd, Main *mainvar, bSound *snd) static void expand_main(FileData *fd, Main *mainvar) { - ListBase *lbarray[30]; + ListBase *lbarray[MAX_LIBARRAY]; ID *id; int a, doit= 1; @@ -6643,7 +6643,7 @@ void BLO_library_append(SpaceFile *sfile, char *dir, int idcode) static int mainvar_count_libread_blocks(Main *mainvar) { - ListBase *lbarray[30]; + ListBase *lbarray[MAX_LIBARRAY]; int a, tot= 0; a= set_listbasepointers(mainvar, lbarray); @@ -6661,7 +6661,7 @@ static void read_libraries(FileData *basefd, ListBase *mainlist) { Main *mainl= mainlist->first; Main *mainptr; - ListBase *lbarray[30]; + ListBase *lbarray[MAX_LIBARRAY]; int a, doit= 1; while(doit) { |