diff options
author | Julian Eisel <julian@blender.org> | 2020-06-17 21:40:22 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-06-19 21:06:37 +0300 |
commit | f4c0ea1d2986f64ed6125a0ca54c9b30a4ecabec (patch) | |
tree | a97e5836b87aec952e78cb89b8c1ae4305c4359f /source/blender | |
parent | e15f85f23dd33a91a9a386c23cbc80ecea3f9ac1 (diff) |
UI: Don't rebuild Outliner tree to remove highlight when leaving area
When leaving the Outliner's area, the highlight would be removed and cause a
full rebuild of the tree. This caused a noticable lag in bigger files.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c index 9450136b6a6..05f48eb5679 100644 --- a/source/blender/editors/space_outliner/space_outliner.c +++ b/source/blender/editors/space_outliner/space_outliner.c @@ -398,7 +398,7 @@ static void outliner_deactivate(struct ScrArea *area) /* Remove hover highlights */ SpaceOutliner *soops = area->spacedata.first; outliner_flag_set(&soops->tree, TSE_HIGHLIGHTED, false); - ED_region_tag_redraw(BKE_area_find_region_type(area, RGN_TYPE_WINDOW)); + ED_region_tag_redraw_no_rebuild(BKE_area_find_region_type(area, RGN_TYPE_WINDOW)); } /* only called once, from space_api/spacetypes.c */ |