mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Might as well deduplicate indices when loading model for baking
This commit is contained in:
parent
32d5f7135f
commit
3aaa18f529
1 changed files with 1 additions and 0 deletions
|
@ -247,6 +247,7 @@ void ModelBaker::bakeSourceCopy() {
|
|||
}
|
||||
hifi::VariantHash serializerMapping = _mapping;
|
||||
serializerMapping["combineParts"] = true; // set true so that OBJSerializer reads material info from material library
|
||||
serializerMapping["deduplicateIndices"] = true; // Draco compression also deduplicates, but we might as well shave it off to save on some earlier processing (currently FBXSerializer only)
|
||||
hfm::Model::Pointer loadedModel = serializer->read(modelData, serializerMapping, _modelURL);
|
||||
|
||||
baker::Baker baker(loadedModel, serializerMapping, _mappingURL);
|
||||
|
|
Loading…
Reference in a new issue