Fix missing node editor update when assigning/removing materials on objects.
[blender.git] / source / blender / editors / space_node / space_node.c
index 1047e906a109abc35d89a9e7bf8dac5fcd8af258..1d9723f598b79f7aa0c1882cfa1bd9e723aaf34a 100644 (file)
@@ -214,6 +214,12 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
                                        ED_area_tag_refresh(sa);
                        }
                        break;
+               case NC_OBJECT:
+                       if(type==NTREE_SHADER) {
+                               if(wmn->data==ND_OB_SHADING)
+                                       ED_area_tag_refresh(sa);
+                       }
+                       break;
                case NC_TEXT:
                        /* pynodes */
                        if(wmn->data==ND_SHADING)