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.
This commit is contained in:
Julian Eisel 2020-06-17 20:40:22 +02:00
parent e15f85f23d
commit f4c0ea1d29
1 changed files with 1 additions and 1 deletions

View File

@ -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 */