Multires: Store modifier pointer for subdivide

Allows to access its settings during the subdivision process.
This commit is contained in:
Sergey Sharybin
2020-03-19 09:54:29 +01:00
parent 2d1cce8331
commit ffb95baebe
2 changed files with 2 additions and 0 deletions

View File

@@ -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.

View File

@@ -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);