diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-06 17:00:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-06 17:00:56 +0400 |
commit | 900c8a91548ab867391aa8d130cd03ff2d0e3d21 (patch) | |
tree | 1a257664e9f5fd54f76cf66f62aa949577baec22 /source/blender/modifiers | |
parent | 71028de93b329a6568090606ebe4d7c6a9ec1034 (diff) |
fix for same bug as r46346, incorrect code was copied.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgedit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c index b8961870043..0ef27ed992e 100644 --- a/source/blender/modifiers/intern/MOD_weightvgedit.c +++ b/source/blender/modifiers/intern/MOD_weightvgedit.c @@ -211,7 +211,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *der dvert = CustomData_duplicate_referenced_layer(&dm->vertData, CD_MDEFORMVERT, numVerts); /* If no vertices were ever added to an object's vgroup, dvert might be NULL. */ - if (!dvert) + if (!dvert) { /* If this modifier is not allowed to add vertices, just return. */ if (!do_add) return dm; @@ -221,6 +221,7 @@ static DerivedMesh *applyModifier(ModifierData *md, Object *ob, DerivedMesh *der /* Ultimate security check. */ if (!dvert) return dm; + } /* Get org weights, assuming 0.0 for vertices not in given vgroup. */ org_w = MEM_mallocN(sizeof(float) * numVerts, "WeightVGEdit Modifier, org_w"); |