[Bf-blender-cvs] [f4c0ea1d298] master: UI: Don't rebuild Outliner tree to remove highlight when leaving area
Julian Eisel
noreply at git.blender.org
Fri Jun 19 20:14:24 CEST 2020
Commit: f4c0ea1d2986f64ed6125a0ca54c9b30a4ecabec
Author: Julian Eisel
Date: Wed Jun 17 20:40:22 2020 +0200
Branches: master
https://developer.blender.org/rBf4c0ea1d2986f64ed6125a0ca54c9b30a4ecabec
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.
===================================================================
M source/blender/editors/space_outliner/space_outliner.c
===================================================================
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 */
More information about the Bf-blender-cvs
mailing list