Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_shading.c
| Show First 20 Lines • Show All 853 Lines • ▼ Show 20 Lines | static int light_cache_bake_exec(bContext *C, wmOperator *op) | ||||
| light_cache_bake_tag_cache(scene, op); | light_cache_bake_tag_cache(scene, op); | ||||
| short stop = 0, do_update; | short stop = 0, do_update; | ||||
| float progress; /* Not actually used. */ | float progress; /* Not actually used. */ | ||||
| EEVEE_lightbake_job(rj, &stop, &do_update, &progress); | EEVEE_lightbake_job(rj, &stop, &do_update, &progress); | ||||
| EEVEE_lightbake_job_data_free(rj); | EEVEE_lightbake_job_data_free(rj); | ||||
| // no redraw needed, we leave state as we entered it | // no redraw needed, we leave state as we entered it | ||||
| ED_update_for_newframe(bmain, CTX_data_depsgraph(C)); | ED_update_for_newframe(bmain, CTX_data_depsgraph_pointer(C)); | ||||
| WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene); | WM_event_add_notifier(C, NC_SCENE | NA_EDITED, scene); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int light_cache_bake_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | static int light_cache_bake_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 1,186 Lines • Show Last 20 Lines | |||||