If the gun got hot enough to "severely damage" the frame, the likelihood is that the rest of the gun is toast.
My yardstick with all-metal guns is that if the springs show signs of having collapsed from heat, the heat treatment of the rest of the gun has been impaired, and it should be scrapped. With a plastic gun it's a little different due to the lower threshhold of heat damage to the frame, but since the frame is the regulated component, it's more headache and expense than it's worth to replace it. Neither S&W nor any reputable gunsmith is going to accept the liability of switching over your old (cooked) parts to a new frame.
The only part that MIGHT be a candidate for salvage would be the barrel.
M