Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2020-04-30 18:44:55 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-04-30 19:43:59 +0300
commitd44f323df5db147d12aaad673a761404cb19707a (patch)
tree5746a3fe3ec133ca8b9539b79253466eb74f6d6e /source
parent38456d3e82acbcd5e62b7151832b4fb1f291d774 (diff)
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
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/multires_reshape_smooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/multires_reshape_smooth.c b/source/blender/blenkernel/intern/multires_reshape_smooth.c
index 3ddd20720d5..04acb95909f 100644
--- a/source/blender/blenkernel/intern/multires_reshape_smooth.c
+++ b/source/blender/blenkernel/intern/multires_reshape_smooth.c
@@ -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 {