[Bf-blender-cvs] [80b7902a56c] blender-v3.3-release: Fix (unreported) outliner not redrawing on 'removed ID' notification.
Bastien Montagne
noreply at git.blender.org
Thu Aug 18 12:27:10 CEST 2022
Commit: 80b7902a56c88777c6dd3c199fd195aa537cbf5d
Author: Bastien Montagne
Date: Thu Aug 18 12:23:47 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB80b7902a56c88777c6dd3c199fd195aa537cbf5d
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.
===================================================================
M source/blender/editors/space_outliner/space_outliner.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list