1
1

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

While **marking** an asset would update the Outliner immediately (this
due to the fact that `ED_asset_generate_preview` indirectly took care of
a refresh), **clearing** an asset would not do this.

Now be explicit about this in the Outliner listener and consider asset
notifiers there.

Pull Request: blender/blender#105287
This commit is contained in:
2023-03-17 11:55:03 +01:00
committed by Philipp Oeser
parent 38688adaad
commit 24266fd68c

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);
}
break;
case NC_MATERIAL:
switch (wmn->data) {
case ND_SHADING_LINKS: