Fix for my previous fix.
authorRobin Allen <roblovski@gmail.com>
Tue, 18 Aug 2009 21:19:29 +0000 (21:19 +0000)
committerRobin Allen <roblovski@gmail.com>
Tue, 18 Aug 2009 21:19:29 +0000 (21:19 +0000)
source/blender/editors/space_node/node_draw.c
source/blender/editors/space_node/space_node.c

index f3df7a29c2e059663534212cf0007d22cf6160c1..93e7505693fd814228823581db2591ab014bf4d3 100644 (file)
@@ -609,6 +609,7 @@ static void do_node_internal_buttons(bContext *C, void *node_v, int event)
                }                       
                else if(snode->treetype==NTREE_TEXTURE) {
                        WM_event_add_notifier(C, NC_TEXTURE|ND_NODES, snode->id);
+                       ntreeTexUpdatePreviews(snode->nodetree);
                }
        }
        
index 877f9133e4a72ba254bd10304cb92c6c3b2f64c9..07277fe878d4e62919ec8308429abecc13077b2f 100644 (file)
@@ -181,9 +181,6 @@ static void node_area_refresh(const struct bContext *C, struct ScrArea *sa)
                        if(scene->use_nodes)
                                snode_composite_job(C, sa);
                }
-               else if(snode->treetype==NTREE_TEXTURE) {
-                       ntreeTexUpdatePreviews(snode->nodetree);
-               }
        }
 }