why do i get a deformed mesh in weight paint mode and object mode but in Edit mode, the mesh appears the way it should?
I have had a problem like this before. If you have not been able to fall X the mesh by deleting the weight groups then try the following. 1.Go into edit mode. 2. Select all the mesh 3. Press "Shift"+"d" to duplicate the mesh 4. Press "p" and separate mesh by selection.
This will leave you with a new undeformed mesh as a separate object. And the original mesh if you decide to come back to it.