Ver código fonte

Fix some indentation

Aaron Gokaslan 2 anos atrás
pai
commit
d635bc6914

+ 6 - 6
code/AssetLib/Irr/IRRMeshLoader.cpp

@@ -120,15 +120,15 @@ void IRRMeshImporter::InternReadFile(const std::string &pFile,
 	std::unique_ptr<IOStream> file(pIOHandler->Open(pFile));
 
 	// Check whether we can read from the file
-    if (file == nullptr)
-        throw DeadlyImportError("Failed to open IRRMESH file ", pFile);
+	if (file == nullptr)
+		throw DeadlyImportError("Failed to open IRRMESH file ", pFile);
 
 	// Construct the irrXML parser
 	XmlParser parser;
-    if (!parser.parse( file.get() )) {
-        throw DeadlyImportError("XML parse error while loading IRRMESH file ", pFile);
-    }
-    XmlNode root = parser.getRootNode();
+	if (!parser.parse( file.get() )) {
+		throw DeadlyImportError("XML parse error while loading IRRMESH file ", pFile);
+	}
+	XmlNode root = parser.getRootNode();
 
 	// final data
 	std::vector<aiMaterial *> materials;

+ 1 - 1
code/AssetLib/OFF/OFFLoader.cpp

@@ -110,7 +110,7 @@ void OFFImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
 
     // Check whether we can read from the file
     if (file == nullptr) {
-    throw DeadlyImportError("Failed to open OFF file ", pFile, ".");
+      throw DeadlyImportError("Failed to open OFF file ", pFile, ".");
     }
 
     // allocate storage and copy the contents of the file to a memory buffer

+ 4 - 4
tools/assimp_cmd/Main.cpp

@@ -291,8 +291,8 @@ const aiScene* ImportModel(
 	// Now validate this flag combination
 	if(!globalImporter->ValidateFlags(imp.ppFlags)) {
 		printf("ERROR: Unsupported post-processing flags \n");
-        return nullptr;
-    }
+		return nullptr;
+	}
 	printf("Validating postprocessing flags ...  OK\n");
 	if (imp.showLog) {
 		PrintHorBar();
@@ -311,8 +311,8 @@ const aiScene* ImportModel(
 	}
 	if (!scene) {
 		printf("ERROR: Failed to load file: %s\n", globalImporter->GetErrorString());
-        return nullptr;
-    }
+		return nullptr;
+	}
 
 	const clock_t second = ::clock();
 	const double seconds = static_cast<double>(second-first) / CLOCKS_PER_SEC;