Sfoglia il codice sorgente

Tiny misc fixes for documentation

rmitton 9 anni fa
parent
commit
957426ed72
3 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 1 1
      include/assimp/mesh.h
  2. 3 1
      include/assimp/scene.h
  3. 1 1
      tools/assimp_cmd/Main.cpp

+ 1 - 1
include/assimp/mesh.h

@@ -578,7 +578,7 @@ struct aiMesh
     C_STRUCT aiBone** mBones;
 
     /** The material used by this mesh.
-     * A mesh does use only a single material. If an imported model uses
+     * A mesh uses only a single material. If an imported model uses
      * multiple materials, the import splits up the mesh. Use this value
      * as index into the scene's material list.
      */

+ 3 - 1
include/assimp/scene.h

@@ -109,7 +109,9 @@ struct aiNode
     /** The number of meshes of this node. */
     unsigned int mNumMeshes;
 
-    /** The meshes of this node. Each entry is an index into the mesh */
+    /** The meshes of this node. Each entry is an index into the 
+      * mesh list of the #aiScene.
+      */
     unsigned int* mMeshes;
 
     /** Metadata associated with this node or NULL if there is no metadata.

+ 1 - 1
tools/assimp_cmd/Main.cpp

@@ -291,7 +291,7 @@ const aiScene* ImportModel(
 		PrintHorBar();
 	}
 	if (!scene) {
-		printf("ERROR: Failed to load file\n");	
+		printf("ERROR: Failed to load file: %s\n", globalImporter->GetErrorString());
 		return NULL;
 	}