1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-29 07:37:45 +00:00

fix build and obj exporting

This commit is contained in:
NotAdam 2019-01-26 21:34:16 +11:00
parent bdbf8a840b
commit d027ea688c
2 changed files with 4 additions and 2 deletions

View file

@ -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",

View file

@ -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 + "/";