fix [#26448] Solidify Modifier makes mesh texture missing in OpenGL render
authorCampbell Barton <ideasman42@gmail.com>
Fri, 11 Mar 2011 05:23:56 +0000 (05:23 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 11 Mar 2011 05:23:56 +0000 (05:23 +0000)
source/blender/windowmanager/intern/wm_event_system.c

index 85d399519ad8375539802cde146d28d9a0b464f5..e7bbdf074074c725f9db7c32e666e053cc0dac36 100644 (file)
@@ -183,6 +183,7 @@ void wm_event_do_notifiers(bContext *C)
        wmWindowManager *wm= CTX_wm_manager(C);
        wmNotifier *note, *next;
        wmWindow *win;
+       unsigned int win_combine_v3d_datamask= 0;
        
        if(wm==NULL)
                return;
@@ -288,6 +289,11 @@ void wm_event_do_notifiers(bContext *C)
                MEM_freeN(note);
        }
        
+       /* combine datamasks so 1 win doesn't disable UV's in another [#26448] */
+       for(win= wm->windows.first; win; win= win->next) {
+               win_combine_v3d_datamask |= ED_viewedit_datamask(win->screen);
+       }
+
        /* cached: editor refresh callbacks now, they get context */
        for(win= wm->windows.first; win; win= win->next) {
                ScrArea *sa;
@@ -305,7 +311,7 @@ void wm_event_do_notifiers(bContext *C)
                        /* depsgraph & animation: update tagged datablocks */
 
                        /* copied to set's in scene_update_tagged_recursive() */
-                       win->screen->scene->customdata_mask= ED_viewedit_datamask(win->screen);
+                       win->screen->scene->customdata_mask= win_combine_v3d_datamask;
 
                        scene_update_tagged(CTX_data_main(C), win->screen->scene);
                }