Changeset View
Changeset View
Standalone View
Standalone View
source/blender/modifiers/intern/MOD_subsurf.c
| Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | static void subdiv_cache_cpu_evaluation_settings(const ModifierEvalContext *ctx, | ||||
| Mesh *me, | Mesh *me, | ||||
| SubsurfModifierData *smd) | SubsurfModifierData *smd) | ||||
| { | { | ||||
| SubdivToMeshSettings mesh_settings; | SubdivToMeshSettings mesh_settings; | ||||
| subdiv_mesh_settings_init(&mesh_settings, smd, ctx); | subdiv_mesh_settings_init(&mesh_settings, smd, ctx); | ||||
| me->runtime.subsurf_apply_render = (ctx->flag & MOD_APPLY_RENDER) != 0; | me->runtime.subsurf_apply_render = (ctx->flag & MOD_APPLY_RENDER) != 0; | ||||
| me->runtime.subsurf_resolution = mesh_settings.resolution; | me->runtime.subsurf_resolution = mesh_settings.resolution; | ||||
| me->runtime.subsurf_use_optimal_display = mesh_settings.use_optimal_display; | me->runtime.subsurf_use_optimal_display = mesh_settings.use_optimal_display; | ||||
| me->runtime.subsurf_session_uuid = smd->modifier.session_uuid; | |||||
| } | } | ||||
| /* Modifier itself. */ | /* Modifier itself. */ | ||||
| static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh) | ||||
| { | { | ||||
| Mesh *result = mesh; | Mesh *result = mesh; | ||||
| #if !defined(WITH_OPENSUBDIV) | #if !defined(WITH_OPENSUBDIV) | ||||
| ▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines | |||||