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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-19 21:11:42 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-10-19 21:11:42 +0400
commit48f3e3340aca9a10be2b455243c2cea651e665a9 (patch)
tree41d6434a4dbabbeeef92a0693c934e2662a60836 /source/blender/editors/object/object_vgroup.c
parent7cc9998eb48832be33c95f0b0c3dc48ff0b6e7e4 (diff)
Fix #19618: invalid vertex group data could be created when
assign vertices without an existing vertex group, causing e.g. armature modifiers to crash.
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-rw-r--r--source/blender/editors/object/object_vgroup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c
index dd3e5969a75..0de1c79b796 100644
--- a/source/blender/editors/object/object_vgroup.c
+++ b/source/blender/editors/object/object_vgroup.c
@@ -876,6 +876,8 @@ static void vgroup_assign_verts(Object *ob, float weight)
int i, done;
dg=BLI_findlink(&ob->defbase, ob->actdef-1);
+ if(!dg)
+ return;
if(ob->type == OB_MESH) {
Mesh *me= ob->data;