Spelling Cleanup
[blender.git] / source / blender / editors / space_node / space_node.c
index a00b1d1d2dc7b38a71570d5d0e9aa28845ee2985..93d3b22e09234679f5a243014ef5f58f2ad00cb7 100644 (file)
@@ -169,6 +169,7 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
        /* note, ED_area_tag_refresh will re-execute compositor */
        SpaceNode *snode= sa->spacedata.first;
        int type= snode->treetype;
+       short shader_type = snode->shaderfrom;
        
        /* preview renders */
        switch(wmn->category) {
@@ -215,7 +216,7 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
                        }
                        break;
                case NC_WORLD:
-                       if(type==NTREE_SHADER) {
+                       if(type==NTREE_SHADER && shader_type==SNODE_SHADER_WORLD) {
                                ED_area_tag_refresh(sa);        
                        }
                        break;
@@ -338,7 +339,7 @@ static void node_buttons_area_draw(const bContext *C, ARegion *ar)
        ED_region_panels(C, ar, 1, NULL, -1);
 }
 
-/* Initialise main area, setting handlers. */
+/* Initialize main area, setting handlers. */
 static void node_main_area_init(wmWindowManager *wm, ARegion *ar)
 {
        wmKeyMap *keymap;