From a7bda035163ec07901d590389a04d1730b291f13 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Mon, 26 Apr 2021 19:30:31 +0200 Subject: Fix T87842: Outliner in `Blender File` mode has large performance impact The Outliner was doing a full rebuild of its tree in response to transform notifiers. I don't see any reason for this, a simple redraw without rebuilding should be just fine. The same optimization could be done for other object notifiers, but I'll check on them separately. --- source/blender/editors/space_outliner/space_outliner.c | 2 ++ 1 file changed, 2 insertions(+) (limited to '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 5d774049e3e..728be1ccaaf 100644 --- a/source/blender/editors/space_outliner/space_outliner.c +++ b/source/blender/editors/space_outliner/space_outliner.c @@ -155,6 +155,8 @@ static void outliner_main_region_listener(const wmRegionListenerParams *params) case NC_OBJECT: switch (wmn->data) { case ND_TRANSFORM: + ED_region_tag_redraw_no_rebuild(region); + break; case ND_BONE_ACTIVE: case ND_BONE_SELECT: case ND_DRAW: -- cgit v1.2.3