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:
parent
e15f85f23d
commit
f4c0ea1d29
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue