Quick fix, just in case the mesh has no vertex groups, there won't be a crash!

This commit is contained in:
2010-04-23 12:15:50 +00:00
parent 6a56b0d844
commit 877e855ca5

View File

@@ -965,7 +965,8 @@ void armature_deform_verts(Object *armOb, Object *target, DerivedMesh *dm,
if(target->type==OB_MESH) {
Mesh *me= target->data;
dverts = me->dvert;
target_totvert = me->totvert;
if(dverts)
target_totvert = me->totvert;
}
else {
Lattice *lt= target->data;