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:
parent
38456d3e82
commit
d44f323df5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue