Merge pull request #1620 from assimp/issue_1619

FBX: closes https://github.com/assimp/assimp/issues/1619: return corr…
This commit is contained in:
Kim Kulling
2017-12-07 13:50:17 +01:00
committed by GitHub

View File

@@ -440,12 +440,11 @@ private:
bool FindTextureIndexByFilename(const Video& video, unsigned int& index) {
index = 0;
const char* videoFileName = video.FileName().c_str();
for (auto texture = textures_converted.begin(); texture != textures_converted.end(); ++texture)
{
for (auto texture = textures_converted.begin(); texture != textures_converted.end(); ++texture) {
if (!strcmp(texture->first->FileName().c_str(), videoFileName)) {
index = texture->second;
return true;
}
index++;
}
return false;
}