Fixed TextureTypeToString defined multiple times.

- Moved TextureTypeToString to it's own file.
- Added new file to CMakeLists.txt.
- Added 6 missing values in TextureTypeToString.
- Added 6 missing aiTextureType enum values in assimp_cmd/Info.cpp.
This commit is contained in:
Marc-Antoine Lortie
2020-02-06 13:19:01 -05:00
parent 355131e261
commit 8c09cd2ef3
7 changed files with 108 additions and 84 deletions
+6
View File
@@ -444,6 +444,12 @@ int Assimp_Info (const char* const* params, unsigned int num) {
aiTextureType_DISPLACEMENT,
aiTextureType_LIGHTMAP,
aiTextureType_REFLECTION,
aiTextureType_BASE_COLOR,
aiTextureType_NORMAL_CAMERA,
aiTextureType_EMISSION_COLOR,
aiTextureType_METALNESS,
aiTextureType_DIFFUSE_ROUGHNESS,
aiTextureType_AMBIENT_OCCLUSION,
aiTextureType_UNKNOWN
};
for(unsigned int type = 0; type < sizeof(types)/sizeof(types[0]); ++type) {