diff options
author | Bastien Montagne <bastien@blender.org> | 2022-08-18 13:23:47 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-08-18 13:23:47 +0300 |
commit | 80b7902a56c88777c6dd3c199fd195aa537cbf5d (patch) | |
tree | 75ed5f0587a9db45038ddccf691a4dc38e4cffff | |
parent | f6a666594798fb10db8db63022a080bae6e0e949 (diff) |
Fix (unreported) outliner not redrawing on 'removed ID' notification.
Could lead to crahses in some cases, with outliner drawing code
accessing freed ID data in its tree.
-rw-r--r-- | source/blender/editors/space_outliner/space_outliner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/space_outliner.cc b/source/blender/editors/space_outliner/space_outliner.cc index 5bcd1edebc0..9e95f8ba4c9 100644 --- a/source/blender/editors/space_outliner/space_outliner.cc +++ b/source/blender/editors/space_outliner/space_outliner.cc @@ -191,7 +191,7 @@ static void outliner_main_region_listener(const wmRegionListenerParams *params) } break; case NC_ID: - if (ELEM(wmn->action, NA_RENAME, NA_ADDED)) { + if (ELEM(wmn->action, NA_RENAME, NA_ADDED, NA_REMOVED)) { ED_region_tag_redraw(region); } break; |