[Bf-blender-cvs] [5a105527453] master: Fix small outliner drawing performance regression

Harley Acheson noreply at git.blender.org
Thu Apr 25 19:34:50 CEST 2019


Commit: 5a105527453caeaf0fe6b215801d92ef0dda1312
Author: Harley Acheson
Date:   Thu Apr 25 16:39:16 2019 +0200
Branches: master
https://developer.blender.org/rB5a105527453caeaf0fe6b215801d92ef0dda1312

Fix small outliner drawing performance regression

Differential Revision: https://developer.blender.org/D4712

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

M	source/blender/editors/space_outliner/outliner_draw.c

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

diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 115f557d484..b512f71aae1 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2107,7 +2107,8 @@ static void outliner_draw_tree_element(bContext *C,
       }
       else if (te->idcode == ID_OB) {
         Object *ob = (Object *)tselem->id;
-        Base *base = BKE_view_layer_base_find(view_layer, ob);
+        Base *base = (te->directdata) ? (Base *)te->directdata :
+                                        BKE_view_layer_base_find(view_layer, ob);
         const bool is_selected = (base != NULL) && ((base->flag & BASE_SELECTED) != 0);
 
         if (ob == obact || is_selected) {



More information about the Bf-blender-cvs mailing list