bugfix [#24333] Horizon Color Picker Crashes Blender if Two 3D View Windows are Open
[blender-staging.git] / source / blender / editors / screen / area.c
index ae1388fb7f2e1b9d3a77229c034d886ba948ced2..7838fbdd5f45a124103cf0ffe7e1eb809494e3fb 100644 (file)
@@ -405,6 +405,19 @@ void ED_area_tag_redraw(ScrArea *sa)
                        ED_region_tag_redraw(ar);
 }
 
+void ED_area_tag_redraw_regiontype(ScrArea *sa, int regiontype)
+{
+       ARegion *ar;
+       
+       if(sa) {
+               for(ar= sa->regionbase.first; ar; ar= ar->next) {
+                       if(ar->regiontype == regiontype) {
+                               ED_region_tag_redraw(ar);
+                       }
+               }
+       }
+}
+
 void ED_area_tag_refresh(ScrArea *sa)
 {
        if(sa)