Fix to actually return selected attribute from function
Merge pull request #108 from ajdm/fix/materials

Fix materials.default() to actually return selected attribute from function