merged 30707:31141 from trunk
[blender.git] / source / blender / windowmanager / intern / wm_event_system.c
index 030ce7fa8887ade9f094be11116c4ab6374f6dce..e281e65539ed6489bfbe18b1eff69bc3d3ad7896 100644 (file)
@@ -296,7 +296,7 @@ void wm_event_do_notifiers(bContext *C)
                /* XXX make lock in future, or separated derivedmesh users in scene */
                if(!G.rendering)
                        /* depsgraph & animation: update tagged datablocks */
-                       scene_update_tagged(win->screen->scene);
+                       scene_update_tagged(CTX_data_main(C), win->screen->scene);
        }
 
        CTX_wm_window_set(C, NULL);