# Parenting Armature to Mesh with Automatic Weights deforms Mesh

I've been following a youtube video to learn about 3d modeling and adding armatures to meshes (video: https://www.youtube.com/watch?v=Q9f-WVs3ghI&t=610s) and whenever I try to parent the armature to the mesh it twists and deforms the mesh. I done a good bit of research on what worked for other people have done to fix the problem and so far none of it has worked for me. So far I have reset rotation of all bones to zero, made sure the bones were mirrored perfectly,changed pole angles, and other things similar to this. None of these have seemed to solve the problem so far.

Any and all help is welcome :)

After parenting:

And my blend file can be found here:

The problem is that the rest pose is different from the pose pose which makes the the mesh deform badly as you showed. To fix this you'll need to go into Pose Mode, select all bones then press the space bar and type "Apply Pose as Rest Pose" then run the Apply Pose as Rest Pose operator as shown below: