mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #11585 from huffman/fix/draco-material-ids
Fix baking bug with single-part FBX + multiple materials
This commit is contained in:
commit
de195dd844
1 changed files with 2 additions and 1 deletions
|
@ -377,7 +377,8 @@ void FBXBaker::rewriteAndBakeSceneModels() {
|
||||||
bool hasColors { mesh.colors.size() > 0 };
|
bool hasColors { mesh.colors.size() > 0 };
|
||||||
bool hasTexCoords { mesh.texCoords.size() > 0 };
|
bool hasTexCoords { mesh.texCoords.size() > 0 };
|
||||||
bool hasTexCoords1 { mesh.texCoords1.size() > 0 };
|
bool hasTexCoords1 { mesh.texCoords1.size() > 0 };
|
||||||
bool hasPerFaceMaterials { mesh.parts.size() > 1 };
|
bool hasPerFaceMaterials { mesh.parts.size() > 1
|
||||||
|
|| extractedMesh.partMaterialTextures[0].first != 0 };
|
||||||
bool needsOriginalIndices { hasDeformers };
|
bool needsOriginalIndices { hasDeformers };
|
||||||
|
|
||||||
int normalsAttributeID { -1 };
|
int normalsAttributeID { -1 };
|
||||||
|
|
Loading…
Reference in a new issue