Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-12-31 15:13:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-12-31 15:13:30 +0300
commitbe207a7e4c08f1ea683c0600887e91da86753f76 (patch)
treeb29e6b940769a729caeef114c56a6d5390a4193d /source/blender/src/outliner.c
parent5e4d32a9ffa7157a40bbd4d1d821c6dad860af0d (diff)
disallow editing the path of an indirectly linked library in the outliner
Diffstat (limited to 'source/blender/src/outliner.c')
-rw-r--r--source/blender/src/outliner.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c
index 3e969e4ca9c..3b957b5f142 100644
--- a/source/blender/src/outliner.c
+++ b/source/blender/src/outliner.c
@@ -1917,9 +1917,11 @@ static int do_outliner_mouse_event(SpaceOops *soops, TreeElement *te, short even
if (G.qual & LR_CTRLKEY) {
if(ELEM8(tselem->type, TSE_NLA, TSE_DEFGROUP_BASE, TSE_CONSTRAINT_BASE, TSE_MODIFIER_BASE, TSE_SCRIPT_BASE, TSE_POSE_BASE, TSE_R_LAYER_BASE, TSE_R_PASS))
error("Cannot edit builtin name");
- else if(tselem->id->lib)
+ else if(tselem->id->lib) {
error_libdata();
- else {
+ } else if(te->idcode == ID_LI && te->parent) {
+ error("Cannot edit the path of an indirectly linked library");
+ } else {
tselem->flag |= TSE_TEXTBUT;
}
} else {