diff options
Diffstat (limited to 'extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc')
-rw-r--r-- | extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc b/extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc index a21d5e77cf7..7a76745342b 100644 --- a/extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc +++ b/extern/draco/dracoenc/src/draco/mesh/triangle_soup_mesh_builder.cc @@ -65,10 +65,12 @@ void TriangleSoupMeshBuilder::SetPerFaceAttributeValueForFace( } std::unique_ptr<Mesh> TriangleSoupMeshBuilder::Finalize() { -#ifdef DRACO_ATTRIBUTE_DEDUPLICATION_SUPPORTED +#ifdef DRACO_ATTRIBUTE_VALUES_DEDUPLICATION_SUPPORTED // First deduplicate attribute values. if (!mesh_->DeduplicateAttributeValues()) return nullptr; +#endif +#ifdef DRACO_ATTRIBUTE_INDICES_DEDUPLICATION_SUPPORTED // Also deduplicate vertex indices. mesh_->DeduplicatePointIds(); #endif |