I'd forgotten I hadn't implemented exporting vertex normals. While I've modified things for making better use of blender's tools and avoiding the unnecessary use of objects, the code is taken from the ajmdl blender 2.4 export script.