Well I wouldn't say the hinges were bent, they were still solidly affixed. But the temples were massively bent out and curved around like they were fit to a big round head and the bridge was bent so the frame front was about to be concave.
Basically I just set a hair dryer to high and warm up the temple till it begins to be pliable working from hinge end first bit by bit. On very bent up temples I have gone to the extreme of removing the temple, placing it so the worst bits are in a smooth edged vise (jaws covered with smooth material) and gradually warming the whole works up carefully in a gently warmed oven. Once warm I can easily tighten the vise to flatten the curve, then let everything cool down, remove the temple, and put the curve I desire in with the hairdryer technique.
Warming the whole thing up in an oven makes it pretty easy to shape but good temperature control is essential. I have an electric smoker that can go nearly as low as room temperature although I don't think this is what historians mean by "smoked glass"