Jelajahi Sumber

Update ColladaLoader.cpp

Kim Kulling 4 tahun lalu
induk
melakukan
38c611a02c
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      code/AssetLib/Collada/ColladaLoader.cpp

+ 3 - 3
code/AssetLib/Collada/ColladaLoader.cpp

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