瀏覽代碼

Add support for GCC v12

PercentBoat4164 3 年之前
父節點
當前提交
487a9aca2f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/AssetLib/glTF2/glTF2Exporter.cpp

+ 1 - 1
code/AssetLib/glTF2/glTF2Exporter.cpp

@@ -683,7 +683,7 @@ bool glTF2Exporter::GetMatSheen(const aiMaterial &mat, glTF2::MaterialSheen &she
     }
     }
 
 
     // Default Sheen color factor {0,0,0} disables Sheen, so do not export
     // Default Sheen color factor {0,0,0} disables Sheen, so do not export
-    if (sheen.sheenColorFactor == defaultSheenFactor) {
+    if (sheen.sheenColorFactor[0] == defaultSheenFactor[0] && sheen.sheenColorFactor[1] == defaultSheenFactor[1] && sheen.sheenColorFactor[2] == defaultSheenFactor[2]) {
         return false;
         return false;
     }
     }