mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 17:00:36 +02:00
Fixed typo error that could potentially launch an assert when loading objects with blend shapes with normals but without tangents
This commit is contained in:
parent
5ae4b99b90
commit
3f8865594b
1 changed files with 1 additions and 1 deletions
|
@ -603,7 +603,7 @@ void FBXReader::buildModelMesh(FBXMesh& extractedMesh, const QString& url) {
|
|||
if (!blendShape.normals.empty() && blendShape.tangents.empty()) {
|
||||
// Fill with a dummy value to force tangents to be present if there are normals
|
||||
blendShape.tangents.reserve(blendShape.normals.size());
|
||||
std::fill_n(std::back_inserter(fbxMesh.tangents), blendShape.normals.size(), Vectors::UNIT_X);
|
||||
std::fill_n(std::back_inserter(blendShape.tangents), blendShape.normals.size(), Vectors::UNIT_X);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue