------------------------------------------------------------------------------------------------ Find the first empty UV channel in a mesh
| 65 | // ------------------------------------------------------------------------------------------------ |
| 66 | // Find the first empty UV channel in a mesh |
| 67 | inline unsigned int FindEmptyUVChannel(aiMesh *mesh) { |
| 68 | for (unsigned int m = 0; m < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++m) |
| 69 | if (!mesh->mTextureCoords[m]) { |
| 70 | return m; |
| 71 | } |
| 72 | |
| 73 | ASSIMP_LOG_ERROR("Unable to compute UV coordinates, no free UV slot found"); |
| 74 | return UINT_MAX; |
| 75 | } |
| 76 | |
| 77 | // ------------------------------------------------------------------------------------------------ |
| 78 | // Try to remove UV seams |