Quick fix, just in case the mesh has no vertex groups, there won't be a crash!
[blender.git] / source / blender / blenkernel / intern / armature.c
index 6d1d90cb363e90bc614ff5de176337d9adb56961..3f89fc4f22630fd97308e03987fb569fbc311cf5 100644 (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;