How to change pose without deforming my mesh? Im not sure if its possible but there are cases where changing pose (by moving/pulling bones) modify the mesh very uglily.

Before:



After:



How can I prevent it? The place where legs connect is character body, and its very weirdly deformed. Knees deform very well, but body doesnt.

Any help appreciated really.

This is probably caused because the bones are too closer to each other, but thats how I planned these legs to be.

Is it possible without changing plans?

EDIT:my blend file:


another screen of what im trying to avoid without success:
I don't know a lot about the Skin modifier but it looks like the parentage was not good. If you apply the Skin modifier, then put your armature in Pose mode, then put your mesh in Weight Paint mode, you can see that the weight painting is not good, the legs control the hip, when they are not supposed to. Now you can correct with the brush.