diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-26 13:46:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-26 15:51:08 +0300 |
commit | e4284d06ada4f3eeac9c19f987e8b2d8eff47e62 (patch) | |
tree | 4b235693675738f24f196f4cf8530579e570c751 /source/blender/modifiers/intern/MOD_meshdeform.c | |
parent | dc316f72b376d49a921cce0fcc718ec0feaa3feb (diff) |
Fix T56899: mesh deform bind does not work.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshdeform.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_meshdeform.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_meshdeform.c b/source/blender/modifiers/intern/MOD_meshdeform.c index 9bfbbc4e44e..aac191bc511 100644 --- a/source/blender/modifiers/intern/MOD_meshdeform.c +++ b/source/blender/modifiers/intern/MOD_meshdeform.c @@ -325,11 +325,17 @@ static void meshdeformModifier_do( /* progress bar redraw can make this recursive .. */ if (!recursive) { + /* Write binding data to original modifier. */ Scene *scene = DEG_get_evaluated_scene(ctx->depsgraph); + Object *ob_orig = DEG_get_original_object(ob); + MeshDeformModifierData *mmd_orig = (MeshDeformModifierData*)modifiers_findByName(ob_orig, mmd->modifier.name); + recursive = 1; - mmd->bindfunc(scene, mmd, cagemesh, (float *)vertexCos, numVerts, cagemat); + mmd->bindfunc(scene, mmd_orig, cagemesh, (float *)vertexCos, numVerts, cagemat); recursive = 0; } + + return; } /* verify we have compatible weights */ |