diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-08 13:58:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-05-08 13:58:48 +0300 |
commit | c51b017a1a12ed1bc9001c2e4e47b14e07f53b53 (patch) | |
tree | b6ba76db8bdaa087fbbf0bdd3291445497b4d862 /source/blender/modifiers/intern/MOD_weightvgedit.c | |
parent | 7d9f1a699a987eb7c831f8d45c4f73316b004fb5 (diff) |
WeightVG modifiers: Cleanup, add asserts to validate expected data status...
Diffstat (limited to 'source/blender/modifiers/intern/MOD_weightvgedit.c')
-rw-r--r-- | source/blender/modifiers/intern/MOD_weightvgedit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/modifiers/intern/MOD_weightvgedit.c b/source/blender/modifiers/intern/MOD_weightvgedit.c index cc000cbee09..e2b1a491ced 100644 --- a/source/blender/modifiers/intern/MOD_weightvgedit.c +++ b/source/blender/modifiers/intern/MOD_weightvgedit.c @@ -155,9 +155,11 @@ static bool isDisabled(ModifierData *md, int UNUSED(useRenderParams)) } static Mesh *applyModifier(ModifierData *md, - const ModifierEvalContext *ctx, - Mesh *mesh) + const ModifierEvalContext *ctx, + Mesh *mesh) { + BLI_assert(mesh != NULL); + WeightVGEditModifierData *wmd = (WeightVGEditModifierData *) md; MDeformVert *dvert = NULL; |