ignore case for .fbx file extension in AvatarDoctor

This commit is contained in:
Thijs Wenker 2019-03-29 01:46:57 +01:00
parent abb0a166b1
commit 687409b756

View file

@ -92,7 +92,7 @@ void AvatarDoctor::startDiagnosing() {
_model = resource;
const auto model = resource.data();
const auto avatarModel = resource.data()->getHFMModel();
if (!avatarModel.originalURL.endsWith(".fbx")) {
if (!avatarModel.originalURL.toLower().endsWith(".fbx")) {
addError("Unsupported avatar model format.", "unsupported-format");
emit complete(getErrors());
return;