Enhance blender 2.66 scene exporter to only export used materials.