Complain about empty HFMModel when EITHER meshes or joints are empty

This commit is contained in:
sabrina-shanman 2018-11-28 15:56:56 -08:00
parent b809eed01f
commit 2919097f29

View file

@ -216,7 +216,7 @@ void GeometryReader::run() {
throw QString("unsupported format");
}
if (hfmModel->meshes.size() == 0 && hfmModel->joints.size() == 0) {
if (hfmModel->meshes.empty() || hfmModel->joints.empty()) {
throw QString("empty geometry, possibly due to an unsupported model version");
}