Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_event_system.c
| Show First 20 Lines • Show All 489 Lines • ▼ Show 20 Lines | for (win = wm->windows.first; win; win = win->next) { | ||||
| } | } | ||||
| if (do_anim) { | if (do_anim) { | ||||
| /* XXX, quick frame changes can cause a crash if framechange and rendering | /* XXX, quick frame changes can cause a crash if framechange and rendering | ||||
| * collide (happens on slow scenes), BKE_scene_graph_update_for_newframe can be called | * collide (happens on slow scenes), BKE_scene_graph_update_for_newframe can be called | ||||
| * twice which can depgraph update the same object at once */ | * twice which can depgraph update the same object at once */ | ||||
| if (G.is_rendering == false) { | if (G.is_rendering == false) { | ||||
| /* depsgraph gets called, might send more notifiers */ | /* depsgraph gets called, might send more notifiers */ | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C); | ||||
| ED_update_for_newframe(CTX_data_main(C), depsgraph); | ED_update_for_newframe(CTX_data_main(C), depsgraph); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /* the notifiers are sent without context, to keep it clean */ | /* the notifiers are sent without context, to keep it clean */ | ||||
| while ((note = BLI_pophead(&wm->queue))) { | while ((note = BLI_pophead(&wm->queue))) { | ||||
| for (win = wm->windows.first; win; win = win->next) { | for (win = wm->windows.first; win; win = win->next) { | ||||
| ▲ Show 20 Lines • Show All 4,810 Lines • Show Last 20 Lines | |||||