Merge branch 'blender-v3.1-release'

This commit is contained in:
Jacques Lucke 2022-02-07 18:17:29 +01:00
commit d3e9d74a5f
1 changed files with 1 additions and 1 deletions

View File

@ -394,7 +394,7 @@ static void send_notifiers_after_tree_change(ID *id, bNodeTree *ntree)
{
WM_main_add_notifier(NC_NODE | NA_EDITED, nullptr);
if (ntree->type == NTREE_SHADER) {
if (ntree->type == NTREE_SHADER && id != nullptr) {
if (GS(id->name) == ID_MA) {
WM_main_add_notifier(NC_MATERIAL | ND_SHADING, id);
}