Exporting mesh always empty