Outliner: listen to collection change in the header region #111725

Open
Philipp Oeser wants to merge 1 commits from lichtwerk/blender:109995 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 10 additions and 2 deletions

View File

@ -311,8 +311,16 @@ static void outliner_header_region_listener(const wmRegionListenerParams *params
/* context changes */
switch (wmn->category) {
case NC_SCENE:
if (wmn->data == ND_KEYINGSET) {
ED_region_tag_redraw(region);
switch (wmn->data) {
case ND_KEYINGSET:
ED_region_tag_redraw(region);
break;
case ND_LAYER:
/* Not needed by blender itself, request from Addon devs. */
if ((wmn->subtype == NS_LAYER_COLLECTION) && (wmn->action == NA_ACTIVATED)) {
ED_region_tag_redraw(region);
}
break;
}
break;
case NC_SPACE: