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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-10-04 22:04:49 +0400
committerTon Roosendaal <ton@blender.org>2005-10-04 22:04:49 +0400
commit375056def53c24794dc1eccdac6d829eb260662a (patch)
tree5081e7a16f2a1a47f987647eded9fb96e4bf225d /source
parentd8c17fcf8b36ea38daa4c2b9798e83c8cea3d633 (diff)
Added (temporal) fix for crashes with the new cool "show modifier deform in
editmode" feature. This specific fix only patches the case with armature deformed meshes & vertex groups. Note that while in editmode, new created vertices have no weights or groups assigned, so the result will be unpredictable. This feature should actually only be allowed for moving vertices around I guess...
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/intern/armature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 3103bae20ab..887d0dfe174 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -717,7 +717,7 @@ void armature_deform_verts(Object *armOb, Object *target, float (*vertexCos)[3],
/* Apply the object's matrix */
Mat4MulVecfl(premat, co);
- if(dverts)
+ if(dverts && i<((Mesh*)target->data)->totvert)
dvert= dverts+i;
else
dvert= NULL;