diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-19 11:54:29 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-03-19 12:01:56 +0300 |
commit | ffb95baebe2dc39ab43ad9b81a11742086324bde (patch) | |
tree | ca6b81e7072b54e30f53930d2d203153cd7567f7 /source | |
parent | 2d1cce8331f3ecdfb8cb0c651e111ffac5dc7153 (diff) |
Multires: Store modifier pointer for subdivide
Allows to access its settings during the subdivision process.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/multires_reshape.h | 1 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/multires_reshape_util.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/multires_reshape.h b/source/blender/blenkernel/intern/multires_reshape.h index deeb885e15a..79d3c48869f 100644 --- a/source/blender/blenkernel/intern/multires_reshape.h +++ b/source/blender/blenkernel/intern/multires_reshape.h @@ -39,6 +39,7 @@ typedef struct MultiresReshapeContext { /* NOTE: Only available when context is initialized from object. */ struct Depsgraph *depsgraph; struct Object *object; + struct MultiresModifierData *mmd; /* Base mesh from original object. diff --git a/source/blender/blenkernel/intern/multires_reshape_util.c b/source/blender/blenkernel/intern/multires_reshape_util.c index 495b60c1238..165f1929643 100644 --- a/source/blender/blenkernel/intern/multires_reshape_util.c +++ b/source/blender/blenkernel/intern/multires_reshape_util.c @@ -218,6 +218,7 @@ bool multires_reshape_context_create_from_subdivide(MultiresReshapeContext *resh Mesh *base_mesh = (Mesh *)object->data; + reshape_context->mmd = mmd; reshape_context->base_mesh = base_mesh; reshape_context->subdiv = multires_reshape_create_subdiv(NULL, object, mmd); |