Replaced AI_MATKEY_IOR with AI_MATKEY_REFRACTI.

This commit is contained in:
diharaw
2021-10-07 09:39:08 +01:00
parent b01d008bc0
commit 0fb66f8437
3 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -717,7 +717,7 @@ bool glTF2Exporter::GetMatVolume(const aiMaterial &mat, glTF2::MaterialVolume &v
}
bool glTF2Exporter::GetMatIOR(const aiMaterial &mat, glTF2::MaterialIOR &ior) {
return mat.Get(AI_MATKEY_IOR, ior.ior) == aiReturn_SUCCESS;
return mat.Get(AI_MATKEY_REFRACTI, ior.ior) == aiReturn_SUCCESS;
}
void glTF2Exporter::ExportMaterials() {