Fix T79234: Material preview does not update
When changing the material while the properties editor temporarily isn't visible (e.g. because another editor is in full-screen or a different workspace is active), the preview wouldn't be updated on changes. Always trigger a material preview update on screen layout or editor type changes.
This commit is contained in:
parent
675fa2ee13
commit
5270462953
Notes:
blender-bot
2023-02-14 11:25:11 +01:00
Referenced by issue #79234, Materiel preview does not update
|
@ -584,6 +584,10 @@ static void buttons_area_listener(wmWindow *UNUSED(win),
|
|||
if (wmn->data == ND_SPACE_PROPERTIES) {
|
||||
ED_area_tag_redraw(area);
|
||||
}
|
||||
else if (wmn->data == ND_SPACE_CHANGED) {
|
||||
ED_area_tag_redraw(area);
|
||||
sbuts->preview = 1;
|
||||
}
|
||||
break;
|
||||
case NC_ID:
|
||||
if (wmn->action == NA_RENAME) {
|
||||
|
@ -624,6 +628,12 @@ static void buttons_area_listener(wmWindow *UNUSED(win),
|
|||
sbuts->preview = 1;
|
||||
}
|
||||
break;
|
||||
case NC_SCREEN:
|
||||
if (wmn->data == ND_LAYOUTSET) {
|
||||
ED_area_tag_redraw(area);
|
||||
sbuts->preview = 1;
|
||||
}
|
||||
break;
|
||||
#ifdef WITH_FREESTYLE
|
||||
case NC_LINESTYLE:
|
||||
ED_area_tag_redraw(area);
|
||||
|
|
Loading…
Reference in New Issue