Gargaj 3 лет назад
Родитель
Сommit
f612865f22
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      code/AssetLib/FBX/FBXConverter.cpp
  2. 1 1
      code/Common/FileSystemFilter.h

+ 1 - 1
code/AssetLib/FBX/FBXConverter.cpp

@@ -2151,7 +2151,7 @@ void FBXConverter::SetShadingPropertiesCommon(aiMaterial *out_mat, const Propert
     if (ok) {
         out_mat->AddProperty(&ShininessExponent, 1, AI_MATKEY_SHININESS);
          // Match Blender behavior to extract roughness when only shininess is present
-        const float roughness = 1.0 - (sqrt(ShininessExponent) / 10.0);
+        const float roughness = 1.0f - (sqrt(ShininessExponent) / 10.0f);
         out_mat->AddProperty(&roughness, 1, AI_MATKEY_ROUGHNESS_FACTOR);
     }
 

+ 1 - 1
code/Common/FileSystemFilter.h

@@ -300,7 +300,7 @@ private:
 
         const char separator = getOsSeparator();
         for (it = in.begin(); it != in.end(); ++it) {
-            int remaining = std::distance(in.end(), it);
+            int remaining = (int)std::distance(in.end(), it);
             // Exclude :// and \\, which remain untouched.
             // https://sourceforge.net/tracker/?func=detail&aid=3031725&group_id=226462&atid=1067632
             if (remaining >= 3 && !strncmp(&*it, "://", 3 )) {