Fix VS compiler warning: convertig int to char

pull/3616/head
Kim Kulling 2021-01-27 09:22:59 +01:00 committed by GitHub
parent 4471c36c08
commit c02ad323a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ Material::Material(uint64_t id, const Element& element, const Document& doc, con
// lower-case shading because Blender (for example) writes "Phong"
for (size_t i = 0; i < shading.length(); ++i) {
shading[i] = tolower(shading[i]);
shading[i] = sttaic_cast<char>(tolower(shading[i]);
}
if(shading == "phong") {
templateName = "Material.FbxSurfacePhong";