The government may simply insist that 3D printer manufacturers install software that prevents printing of a hollow cylinder of a certain size, a firing pin, or a certain type of spring.
FORBES: Five Reasons Gunmakers Have Nothing To Fear From 3D Printed Guns