[Bf-blender-cvs] [a7bda035163] master: Fix T87842: Outliner in `Blender File` mode has large performance impact

Julian Eisel noreply at git.blender.org
Mon Apr 26 19:35:07 CEST 2021


Commit: a7bda035163ec07901d590389a04d1730b291f13
Author: Julian Eisel
Date:   Mon Apr 26 19:30:31 2021 +0200
Branches: master
https://developer.blender.org/rBa7bda035163ec07901d590389a04d1730b291f13

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.

===================================================================

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 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:



More information about the Bf-blender-cvs mailing list