From 4addcf1efcd6d6cc4d72a730bd88f4b89d2f1a8d Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 5 Mar 2021 18:14:56 +0100 Subject: Cleanup: Remove redundant special handling after previous commit Not needed anymore since 3a907e742507. --- source/blender/editors/space_outliner/outliner_tree.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner_tree.c') diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index f109efbaa2b..6ca986660c1 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1001,13 +1001,7 @@ TreeElement *outliner_add_element(SpaceOutliner *space_outliner, /* Other cases must be caught above. */ BLI_assert(TSE_IS_REAL_ID(tselem)); - /* do here too, for blend file viewer, own ID_LI then shows file name */ - if (GS(id->name) == ID_LI) { - te->name = ((Library *)id)->filepath; - } - else { - te->name = id->name + 2; /* Default, can be overridden by Library or non-ID data. */ - } + te->name = id->name + 2; /* Default, can be overridden by Library or non-ID data. */ te->idcode = GS(id->name); } -- cgit v1.2.3