mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:47:11 +02:00
Remove dead code
This commit is contained in:
parent
d858956ad8
commit
52c0ba817a
1 changed files with 0 additions and 18 deletions
|
@ -105,24 +105,6 @@ bool ModelPackager::loadModel() {
|
||||||
QByteArray fbxContents = fbx.readAll();
|
QByteArray fbxContents = fbx.readAll();
|
||||||
_geometry = readFBX(fbxContents, QVariantHash());
|
_geometry = readFBX(fbxContents, QVariantHash());
|
||||||
|
|
||||||
#if 0 /// Temporarily remove this check until CtrlAltDavid can come up with a fix.
|
|
||||||
// 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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// make sure we have some basic mappings
|
// make sure we have some basic mappings
|
||||||
populateBasicMapping(_mapping, _fbxInfo.filePath(), _geometry);
|
populateBasicMapping(_mapping, _fbxInfo.filePath(), _geometry);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue