mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 02:31:13 +02:00
Don't upload skeletonless avatar model to HiFi servers
This commit is contained in:
parent
aad3f1dfd9
commit
8686e090c9
1 changed files with 16 additions and 0 deletions
|
@ -177,6 +177,22 @@ bool ModelUploader::zip() {
|
||||||
}
|
}
|
||||||
QByteArray fbxContents = fbx.readAll();
|
QByteArray fbxContents = fbx.readAll();
|
||||||
FBXGeometry geometry = readFBX(fbxContents, QVariantHash());
|
FBXGeometry geometry = readFBX(fbxContents, QVariantHash());
|
||||||
|
|
||||||
|
// Make sure that a skeleton model has a skeleton
|
||||||
|
if (_modelType == SKELETON_MODEL) {
|
||||||
|
if (geometry.rootJointIndex == -1) {
|
||||||
|
|
||||||
|
QString message = "Your selected skeleton model has no skeleton.\n\nThe upload will be canceled.";
|
||||||
|
QMessageBox msgBox;
|
||||||
|
msgBox.setWindowTitle("Model Upload");
|
||||||
|
msgBox.setText(message);
|
||||||
|
msgBox.setStandardButtons(QMessageBox::Ok);
|
||||||
|
msgBox.setIcon(QMessageBox::Warning);
|
||||||
|
msgBox.exec();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// make sure we have some basic mappings
|
// make sure we have some basic mappings
|
||||||
populateBasicMapping(mapping, filename, geometry);
|
populateBasicMapping(mapping, filename, geometry);
|
||||||
|
|
Loading…
Reference in a new issue