From 0c675f63ebb705e73f232142e586a2b57a82552a Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 13 Feb 2016 13:58:21 +0100 Subject: [PATCH] Fixed: Don't try to convert next meshes if an error occurs --- code/nel/tools/3d/mesh_export/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/nel/tools/3d/mesh_export/main.cpp b/code/nel/tools/3d/mesh_export/main.cpp index be19c92ff..f22e53f41 100644 --- a/code/nel/tools/3d/mesh_export/main.cpp +++ b/code/nel/tools/3d/mesh_export/main.cpp @@ -43,7 +43,7 @@ int main(int argc, char *argv[]) NL3D::registerSerial3d(); sint res = 0; - + for(uint i = 0; i < filePathes.size(); ++i) { std::string filePath = filePathes[i]; @@ -78,6 +78,8 @@ int main(int argc, char *argv[]) settings.ToolErrorLog = settings.DestinationDirectoryPath + "error.log"; res = exportScene(settings); + + if (res != EXIT_SUCCESS) break; } return res;