* Update histogram on frame change and image swap
authorMatt Ebb <matt@mke3.net>
Sun, 28 Mar 2010 23:30:00 +0000 (23:30 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 28 Mar 2010 23:30:00 +0000 (23:30 +0000)
source/blender/editors/space_image/space_image.c

index 30f173bd149004f17f0c5183b45bb165919fcd65..26275434c8439b2b02b951e1059c5609fde651ac 100644 (file)
@@ -590,6 +590,10 @@ static void image_listener(ScrArea *sa, wmNotifier *wmn)
                case NC_SCENE:
                        switch(wmn->data) {
                                case ND_FRAME:
+                                       image_histogram_tag_refresh(sa);
+                                       ED_area_tag_refresh(sa);
+                                       ED_area_tag_redraw(sa);                                 
+                                       break;
                                case ND_MODE:
                                case ND_RENDER_RESULT:
                                case ND_COMPO_RESULT:
@@ -608,8 +612,10 @@ static void image_listener(ScrArea *sa, wmNotifier *wmn)
                        }
                        break;
                case NC_SPACE:  
-                       if(wmn->data == ND_SPACE_IMAGE)
+                       if(wmn->data == ND_SPACE_IMAGE) {
+                               image_histogram_tag_refresh(sa);
                                ED_area_tag_redraw(sa);
+                       }
                        break;
                case NC_GEOM:
                        switch(wmn->data) {