Fixed an other bug and made some identations.
NOTE: Fixed a bug when exporting an object converted to area light and that has hard edges. Thanks oort. [Micheus]