[Bf-blender-cvs] [4addcf1efcd] master: Cleanup: Remove redundant special handling after previous commit

Julian Eisel noreply at git.blender.org
Fri Mar 5 18:18:24 CET 2021


Commit: 4addcf1efcd6d6cc4d72a730bd88f4b89d2f1a8d
Author: Julian Eisel
Date:   Fri Mar 5 18:14:56 2021 +0100
Branches: master
https://developer.blender.org/rB4addcf1efcd6d6cc4d72a730bd88f4b89d2f1a8d

Cleanup: Remove redundant special handling after previous commit

Not needed anymore since 3a907e742507.

===================================================================

M	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);
   }



More information about the Bf-blender-cvs mailing list