[Bf-blender-cvs] [c2d363b1180] blender2.8: Fix T55818: Dynamically modified influence vertex group not working in modifier stack.

Bastien Montagne noreply at git.blender.org
Wed Aug 8 20:08:45 CEST 2018


Commit: c2d363b11804ea2a0ce9e31a120a8a2b73af7a4a
Author: Bastien Montagne
Date:   Wed Aug 8 20:07:12 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc2d363b11804ea2a0ce9e31a120a8a2b73af7a4a

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

===================================================================

M	source/blender/modifiers/intern/MOD_weightvgedit.c
M	source/blender/modifiers/intern/MOD_weightvgmix.c
M	source/blender/modifiers/intern/MOD_weightvgproximity.c

===================================================================

diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c
index 356edcd7bec..74b1f600242 100644
--- a/source/blender/modifiers/intern/MOD_weightvgedit.c
+++ b/source/blender/modifiers/intern/MOD_weightvgedit.c
@@ -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");
diff --git a/source/blender/modifiers/intern/MOD_weightvgmix.c b/source/blender/modifiers/intern/MOD_weightvgmix.c
index 3c740530258..379fbe7adaa 100644
--- a/source/blender/modifiers/intern/MOD_weightvgmix.c
+++ b/source/blender/modifiers/intern/MOD_weightvgmix.c
@@ -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");
diff --git a/source/blender/modifiers/intern/MOD_weightvgproximity.c b/source/blender/modifiers/intern/MOD_weightvgproximity.c
index c485aa132d7..6aadd9f7bc2 100644
--- a/source/blender/modifiers/intern/MOD_weightvgproximity.c
+++ b/source/blender/modifiers/intern/MOD_weightvgproximity.c
@@ -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");



More information about the Bf-blender-cvs mailing list