robofab-developers/robofab — pull request #15 by frankrolf (2014-09-02 11:54:59+00:00)
Title: Modify objectsBase.py for better component interpolation.

The function `_interpolateComponents` takes incoming glyph components, stores them in a dictionary, and then iterates through components based on that dictionary. (`componentNames = minComponents.keys()`)

Since a dictionary in its nature is unsorted, the component order of an interpolated glyph is unpredictable; and most likely different from the component order in the master glyphs.
This fix assigns the `componentNames ` a little earlier, right when the components come into the function.