diff options
author | Harley Acheson <harley> | 2019-04-25 17:39:16 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-25 19:19:54 +0300 |
commit | 5a105527453caeaf0fe6b215801d92ef0dda1312 (patch) | |
tree | 12136302824e8554bcccd07146a245173ae39107 /source | |
parent | b89cabb300816427273596736aa45ab9edca76b9 (diff) |
Fix small outliner drawing performance regression
Differential Revision: https://developer.blender.org/D4712
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |