Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-03 15:46:48 +0300
committerTon Roosendaal <ton@blender.org>2006-11-03 15:46:48 +0300
commit51d3793192303bdaf804292f2ab21ac51da82561 (patch)
tree7e69eb5a45c58f27661b6569f7b00c6667db6d1e /source/blender/src/editdeform.c
parentb29c28c43b056a3a9ddc4efc952158fa43f1ccee (diff)
Bugfix #5008
With the addition of vertexgroup support for Lattices, the option 'create vertex groups from closest bone' crashed due to reading NULL. Fix provided & tested by Joshua.
Diffstat (limited to 'source/blender/src/editdeform.c')
-rw-r--r--source/blender/src/editdeform.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/editdeform.c b/source/blender/src/editdeform.c
index b7a2f43ea3a..62128be9a73 100644
--- a/source/blender/src/editdeform.c
+++ b/source/blender/src/editdeform.c
@@ -302,6 +302,9 @@ void remove_vert_def_nr (Object *ob, int def_nr, int vertnum)
dvert = lt->dvert + vertnum;
}
+ if(dvert==NULL)
+ return;
+
/* for all of the deform weights in the
* deform vert
*/