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/src/header_oops.c | |
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/src/header_oops.c')
-rw-r--r-- | source/blender/src/header_oops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/header_oops.c b/source/blender/src/header_oops.c index f84cee782d7..98dbced9dbd 100644 --- a/source/blender/src/header_oops.c +++ b/source/blender/src/header_oops.c @@ -477,7 +477,10 @@ void oops_buttons(void) } #endif else { - uiDefButS(block, MENU, B_REDR, "Outliner Display%t|All Scenes %x0|Current Scene %x1|Visible Layers %x2|Groups %x6|Same Types %x5|Selected %x3|Active %x4", xco, 0, 100, 20, &soops->outlinevis, 0, 0, 0, 0, ""); + if(G.main->library.first) + uiDefButS(block, MENU, B_REDR, "Outliner Display%t|Libraries %x7|All Scenes %x0|Current Scene %x1|Visible Layers %x2|Groups %x6|Same Types %x5|Selected %x3|Active %x4", xco, 0, 100, 20, &soops->outlinevis, 0, 0, 0, 0, ""); + else + uiDefButS(block, MENU, B_REDR, "Outliner Display%t|All Scenes %x0|Current Scene %x1|Visible Layers %x2|Groups %x6|Same Types %x5|Selected %x3|Active %x4", xco, 0, 100, 20, &soops->outlinevis, 0, 0, 0, 0, ""); } /* always do as last */ |