Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_reshape_smooth.c
| Show First 20 Lines • Show All 1,234 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| const int level_difference = (reshape_context->top.level - reshape_context->reshape.level); | const int level_difference = (reshape_context->top.level - reshape_context->reshape.level); | ||||
| if (level_difference == 0) { | if (level_difference == 0) { | ||||
| /* Early output. */ | /* Early output. */ | ||||
| return; | return; | ||||
| } | } | ||||
| MultiresReshapeSmoothContext reshape_smooth_context; | MultiresReshapeSmoothContext reshape_smooth_context; | ||||
| if (reshape_context->mmd->simple) { | if (reshape_context->subdiv->settings.is_simple) { | ||||
| context_init(&reshape_smooth_context, reshape_context, MULTIRES_SUBDIVIDE_SIMPLE); | context_init(&reshape_smooth_context, reshape_context, MULTIRES_SUBDIVIDE_SIMPLE); | ||||
| } | } | ||||
| else { | else { | ||||
| context_init(&reshape_smooth_context, reshape_context, MULTIRES_SUBDIVIDE_CATMULL_CLARK); | context_init(&reshape_smooth_context, reshape_context, MULTIRES_SUBDIVIDE_CATMULL_CLARK); | ||||
| } | } | ||||
| geometry_create(&reshape_smooth_context); | geometry_create(&reshape_smooth_context); | ||||
| Show All 35 Lines | |||||