Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/multires_reshape_smooth.c
| Show First 20 Lines • Show All 1,067 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| const MultiresReshapeContext *reshape_context = reshape_smooth_context->reshape_context; | const MultiresReshapeContext *reshape_context = reshape_smooth_context->reshape_context; | ||||
| const SubdivSettings *settings = &reshape_context->subdiv->settings; | const SubdivSettings *settings = &reshape_context->subdiv->settings; | ||||
| OpenSubdiv_Converter converter; | OpenSubdiv_Converter converter; | ||||
| converter_init(reshape_smooth_context, &converter); | converter_init(reshape_smooth_context, &converter); | ||||
| Subdiv *reshape_subdiv = BKE_subdiv_new_from_converter(settings, &converter); | Subdiv *reshape_subdiv = BKE_subdiv_new_from_converter(settings, &converter); | ||||
| BKE_subdiv_eval_begin(reshape_subdiv, SUBDIV_EVALUATOR_TYPE_CPU, NULL); | |||||
| OpenSubdiv_EvaluatorSettings evaluator_settings = {0}; | |||||
| BKE_subdiv_eval_begin(reshape_subdiv, SUBDIV_EVALUATOR_TYPE_CPU, NULL, &evaluator_settings); | |||||
| reshape_smooth_context->reshape_subdiv = reshape_subdiv; | reshape_smooth_context->reshape_subdiv = reshape_subdiv; | ||||
| BKE_subdiv_converter_free(&converter); | BKE_subdiv_converter_free(&converter); | ||||
| } | } | ||||
| /* Callback to provide coarse position for subdivision surface topology at a reshape level. */ | /* Callback to provide coarse position for subdivision surface topology at a reshape level. */ | ||||
| typedef void(ReshapeSubdivCoarsePositionCb)( | typedef void(ReshapeSubdivCoarsePositionCb)( | ||||
| ▲ Show 20 Lines • Show All 449 Lines • Show Last 20 Lines | |||||