mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 17:10:45 +02:00
Let hfm prep calculate OBJ model extents
This commit is contained in:
parent
9fd76cac84
commit
993aa06301
1 changed files with 0 additions and 7 deletions
|
@ -675,7 +675,6 @@ HFMModel::Pointer OBJSerializer::read(const hifi::ByteArray& data, const hifi::V
|
|||
|
||||
_url = url;
|
||||
bool combineParts = mapping.value("combineParts").toBool();
|
||||
hfmModel.meshExtents.reset();
|
||||
hfmModel.meshes.push_back(HFMMesh());
|
||||
|
||||
std::vector<QString> materialNamePerShape;
|
||||
|
@ -827,12 +826,6 @@ HFMModel::Pointer OBJSerializer::read(const hifi::ByteArray& data, const hifi::V
|
|||
}
|
||||
}
|
||||
|
||||
mesh.meshExtents.reset();
|
||||
foreach(const glm::vec3& vertex, mesh.vertices) {
|
||||
mesh.meshExtents.addPoint(vertex);
|
||||
hfmModel.meshExtents.addPoint(vertex);
|
||||
}
|
||||
|
||||
// hfmDebugDump(hfmModel);
|
||||
} catch(const std::exception& e) {
|
||||
qCDebug(modelformat) << "OBJSerializer fail: " << e.what();
|
||||
|
|
Loading…
Reference in a new issue