Fix crash when switching subdivision level in Multires

When using multires_reshape_context_create_from_ccg to create the
context mmd is null, so the subdivision smooth mode can't be checked
there.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D7579
This commit is contained in:
Pablo Dobarro 2020-04-30 17:44:55 +02:00
parent 38456d3e82
commit d44f323df5
1 changed files with 1 additions and 1 deletions

View File

@ -1240,7 +1240,7 @@ void multires_reshape_smooth_object_grids_with_details(
}
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);
}
else {