diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-30 17:18:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-30 18:00:47 +0300 |
commit | 25d4d43491055c4c7c0a523a0ddb0bf027d1515d (patch) | |
tree | 85aaf573d50fc8bf6fb73e155e2c8baa4f86f0e3 /source/blender/modifiers/intern/MOD_weightvgmix.c | |
parent | cdfa5177608d6f78338477b293beb3e92b7335ed (diff) |
Modifiers: Restore duplication of referenced layers
Was no reason to remove those calls, it was always a plan to bring
referenced layers back eventually.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvgmix.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgmix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvgmix.c b/source/blender/modifiers/intern/MOD_weightvgmix.c index 1736bb01951..eeaf292991f 100644 --- a/source/blender/modifiers/intern/MOD_weightvgmix.c +++ b/source/blender/modifiers/intern/MOD_weightvgmix.c @@ -253,7 +253,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes false); if (has_mdef) { - dvert = CustomData_get_layer(&result->vdata, CD_MDEFORMVERT); + dvert = CustomData_duplicate_referenced_layer(&result->vdata, CD_MDEFORMVERT, numVerts); } else { /* Add a valid data layer! */ |