Update ColladaLoader.cpp

pull/4029/head
Kim Kulling 2021-08-30 08:33:35 +02:00 committed by GitHub
parent e2c2a60c45
commit 38c611a02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1543,9 +1543,9 @@ void ColladaLoader::AddTexture(aiMaterial &mat,
map = sampler.mUVId; map = sampler.mUVId;
} else { } else {
map = -1; map = -1;
for (char it : sampler.mUVChannel) { for (std::string::const_iterator it = sampler.mUVChannel.begin(); it != sampler.mUVChannel.end(); ++it) {
if (IsNumeric(it)) { if (IsNumeric(*it)) {
map = strtoul10(&it); map = strtoul10(&(*it));
break; break;
} }
} }