It is generally believed that O-leg is a correctable inheritance. It's a bit like myopia, and heredity affects people's physique. People with certain genes may be more likely to become O-legs in bad habits, but not necessarily O-legs-as long as you don't have bad habits. In addition, an important reason that seems to be related to heredity is living habits. Children can easily learn their parents' gestures. If parents have splayed feet that lead to O-legs, children will often learn and eventually lead to O-legs. So heredity still works through daily habits.
Therefore, heredity does not directly affect the formation of O-legs, nor does it affect the correction of O-legs. Most O-shaped legs are not born, but because of the acquired walking, exercise, standing posture and sitting posture, which leads to abnormal distribution of soft tissue inside and outside the legs.