Update ColladaLoader.cpp
parent
e2c2a60c45
commit
38c611a02c
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue