Fix T55818: Dynamically modified influence vertex group not working in modifier stack.

Now that we are using meshes, we need to assign back potential new
vgroup cdlayer to mesh->dvert pointer...
This commit is contained in:
Bastien Montagne 2018-08-08 20:07:12 +02:00
parent 211ad6bf9a
commit c2d363b118
Notes: blender-bot 2023-02-14 10:37:50 +01:00
Referenced by issue #55818, Dynamically modified influence vertex group not working in modifier stack
3 changed files with 3 additions and 0 deletions

View File

@ -219,6 +219,7 @@ static Mesh *applyModifier(
}
return mesh;
}
result->dvert = dvert;
/* Get org weights, assuming 0.0 for vertices not in given vgroup. */
org_w = MEM_malloc_arrayN(numVerts, sizeof(float), "WeightVGEdit Modifier, org_w");

View File

@ -259,6 +259,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
}
return mesh;
}
result->dvert = dvert;
/* Find out which vertices to work on. */
tidx = MEM_malloc_arrayN(numVerts, sizeof(int), "WeightVGMix Modifier, tidx");

View File

@ -438,6 +438,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
}
return mesh;
}
result->dvert = dvert;
/* Find out which vertices to work on (all vertices in vgroup), and get their relevant weight. */
tidx = MEM_malloc_arrayN(numVerts, sizeof(int), "WeightVGProximity Modifier, tidx");