From 9307f0898625fcc50b9060e8897efda28453cf3a Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 9 Sep 2015 12:26:58 +0200 Subject: Fix (unreported) Outliner letting you edit path of indirect linked lib shown at 'first level'. From Gooseberry team request indirect libs were also added at root of 'BlendFile' Outliner view, but that allowed edition of their path, which is useless... --- source/blender/editors/space_outliner/outliner_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c index 1ddd25f9219..6d420674f3e 100644 --- a/source/blender/editors/space_outliner/outliner_edit.c +++ b/source/blender/editors/space_outliner/outliner_edit.c @@ -220,7 +220,7 @@ static void do_item_rename(ARegion *ar, TreeElement *te, TreeStoreElem *tselem, else if (tselem->id->lib) { BKE_report(reports, RPT_WARNING, "Cannot edit external libdata"); } - else if (te->idcode == ID_LI && te->parent) { + else if (te->idcode == ID_LI && ((Library *)tselem->id)->parent) { BKE_report(reports, RPT_WARNING, "Cannot edit the path of an indirectly linked library"); } else { -- cgit v1.2.3