diff --git a/src/tools/pcb_reader/main.cpp b/src/tools/pcb_reader/main.cpp index 4deaff7b..0856e7e5 100644 --- a/src/tools/pcb_reader/main.cpp +++ b/src/tools/pcb_reader/main.cpp @@ -494,7 +494,7 @@ int main( int argc, char* argv[] ) exportedZone.groups.emplace( group.name, exportedGroup ); } } - exportMgr.exportZone( exportedZone, ExportFileType::Navmesh ); + exportMgr.exportZone( exportedZone, static_cast< ExportFileType >( exportFileType ) ); printf( "Exported %s in %lu seconds \n", diff --git a/src/tools/pcb_reader/navmesh_exporter.h b/src/tools/pcb_reader/navmesh_exporter.h index 8c16c0ad..f9d57a4e 100644 --- a/src/tools/pcb_reader/navmesh_exporter.h +++ b/src/tools/pcb_reader/navmesh_exporter.h @@ -18,8 +18,10 @@ namespace fs = std::experimental::filesystem; class NavmeshExporter { public: - static void exportZone( const ExportedZone& zone, bool deleteObj = false ) + static void exportZone( const ExportedZone& zone ) { + auto start = std::chrono::high_resolution_clock::now(); + static std::string currPath = std::experimental::filesystem::current_path().string(); auto dir = fs::current_path().string() + "/pcb_export/" + zone.name + "/";