diff options
author | Julian Eisel <julian@blender.org> | 2021-04-26 20:30:31 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-04-26 20:30:31 +0300 |
commit | a7bda035163ec07901d590389a04d1730b291f13 (patch) | |
tree | 64697967aba4cc60c3a3d626d94406b545342223 | |
parent | 607cd463b3c9ddbd9f8a5fdb7a0bb47dd2937bef (diff) |
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.
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |