Fix #105216: Clear Asset does not immediately redraw the outliner #105287

Merged
Philipp Oeser merged 1 commits from lichtwerk/blender:105216 into blender-v3.5-release 2023-03-17 11:55:15 +01:00
1 changed files with 5 additions and 0 deletions

View File

@ -195,6 +195,11 @@ static void outliner_main_region_listener(const wmRegionListenerParams *params)
ED_region_tag_redraw(region);
}
break;
case NC_ASSET:
if (ELEM(wmn->action, NA_ADDED, NA_REMOVED)) {
ED_region_tag_redraw_no_rebuild(region);
lichtwerk marked this conversation as resolved Outdated

Would suggest using ED_region_tag_redraw_no_rebuild(). Just the icon needs updating, not the entire tree.

Would suggest using `ED_region_tag_redraw_no_rebuild()`. Just the icon needs updating, not the entire tree.
Review

yep, changed that.

yep, changed that.
}
break;
case NC_MATERIAL:
switch (wmn->data) {
case ND_SHADING_LINKS: