diff options
author | Julian Eisel <julian@blender.org> | 2021-03-05 20:14:56 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-03-05 20:14:56 +0300 |
commit | 4addcf1efcd6d6cc4d72a730bd88f4b89d2f1a8d (patch) | |
tree | 8f4d2e681c525cbca5d58014f1af960d0e11214b /source/blender | |
parent | 3a907e742507dde9b26eb5f531c18ad00b0e2ab6 (diff) |
Cleanup: Remove redundant special handling after previous commit
Not needed anymore since 3a907e742507.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_tree.c | 8 |
1 files changed, 1 insertions, 7 deletions
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); } |