Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / blender / editors / space_node / space_node.c
index d3a445b..cb25d29 100644 (file)
@@ -163,15 +163,6 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
                        if(wmn->data==ND_NODES)
                                ED_area_tag_refresh(sa);
                        break;
-               case NC_TEXT:
-                       /* pynodes */
-                       if(wmn->data==ND_SHADING)
-                               ED_area_tag_refresh(sa);
-                       break;
-               case NC_SPACE:
-                       if(wmn->data==ND_SPACE_NODE)
-                               ED_area_tag_refresh(sa);
-                       break;
        }
 }
 
@@ -193,9 +184,8 @@ static void node_area_refresh(const struct bContext *C, struct ScrArea *sa)
                }
                else if(snode->treetype==NTREE_TEXTURE) {
                        Tex *tex= (Tex *)snode->id;
-                       if(tex->use_nodes) {
-                               ED_preview_shader_job(C, sa, snode->id, NULL, NULL, 100, 100);
-                       }
+                       if(tex->use_nodes)
+                               ntreeTexUpdatePreviews(tex->nodetree);
                }
        }
 }