Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/render/render_update.c
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | for (sa = sc->areabase.first; sa; sa = sa->next) { | ||||
| CTX_wm_screen_set(C, sc); | CTX_wm_screen_set(C, sc); | ||||
| CTX_wm_area_set(C, sa); | CTX_wm_area_set(C, sa); | ||||
| CTX_wm_region_set(C, ar); | CTX_wm_region_set(C, ar); | ||||
| engine->flag &= ~RE_ENGINE_DO_UPDATE; | engine->flag &= ~RE_ENGINE_DO_UPDATE; | ||||
| /* NOTE: Important to pass non-updated depsgraph, This is because this function is called | /* NOTE: Important to pass non-updated depsgraph, This is because this function is called | ||||
| * from inside dependency graph evaluation. Additionally, if we pass fully evaluated one | * from inside dependency graph evaluation. Additionally, if we pass fully evaluated one | ||||
| * we will loose updates stored in the graph. */ | * we will loose updates stored in the graph. */ | ||||
| engine->type->view_update(engine, C, CTX_data_depsgraph(C)); | engine->type->view_update(engine, C, CTX_data_depsgraph_pointer(C)); | ||||
| } | } | ||||
| else { | else { | ||||
| RenderEngineType *engine_type = ED_view3d_engine_type(scene, v3d->shading.type); | RenderEngineType *engine_type = ED_view3d_engine_type(scene, v3d->shading.type); | ||||
| if (updated) { | if (updated) { | ||||
| DRW_notify_view_update((&(DRWUpdateContext){ | DRW_notify_view_update((&(DRWUpdateContext){ | ||||
| .bmain = bmain, | .bmain = bmain, | ||||
| .depsgraph = update_ctx->depsgraph, | .depsgraph = update_ctx->depsgraph, | ||||
| .scene = scene, | .scene = scene, | ||||
| ▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines | |||||