Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_operators.c
| Show First 20 Lines • Show All 3,151 Lines • ▼ Show 20 Lines | static int redraw_timer_exec(bContext *C, wmOperator *op) | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| double time_start, time_delta; | double time_start, time_delta; | ||||
| const int type = RNA_enum_get(op->ptr, "type"); | const int type = RNA_enum_get(op->ptr, "type"); | ||||
| const int iter = RNA_int_get(op->ptr, "iterations"); | const int iter = RNA_int_get(op->ptr, "iterations"); | ||||
| const double time_limit = (double)RNA_float_get(op->ptr, "time_limit"); | const double time_limit = (double)RNA_float_get(op->ptr, "time_limit"); | ||||
| const int cfra = scene->r.cfra; | const int cfra = scene->r.cfra; | ||||
| int a, iter_steps = 0; | int a, iter_steps = 0; | ||||
| const char *infostr = ""; | const char *infostr = ""; | ||||
| struct Depsgraph *depsgraph = CTX_data_depsgraph(C); | |||||
| /* NOTE: Depsgraph is used to update scene for a new state, so no need to ensure evaluation here. | |||||
| */ | |||||
| struct Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C); | |||||
| WM_cursor_wait(1); | WM_cursor_wait(1); | ||||
| time_start = PIL_check_seconds_timer(); | time_start = PIL_check_seconds_timer(); | ||||
| wm_window_make_drawable(wm, win); | wm_window_make_drawable(wm, win); | ||||
| for (a = 0; a < iter; a++) { | for (a = 0; a < iter; a++) { | ||||
| ▲ Show 20 Lines • Show All 702 Lines • Show Last 20 Lines | |||||