Don't override encoder's best guess.

This commit is contained in:
Par Winzell 2018-02-02 06:58:47 -08:00
parent cbd2e3f00d
commit 8ab9459d6a
1 changed files with 0 additions and 1 deletions

View File

@ -1097,7 +1097,6 @@ ModelData *Raw2Gltf(
encoder.SetAttributeQuantization(draco::GeometryAttribute::NORMAL, 10); encoder.SetAttributeQuantization(draco::GeometryAttribute::NORMAL, 10);
encoder.SetAttributeQuantization(draco::GeometryAttribute::COLOR, 8); encoder.SetAttributeQuantization(draco::GeometryAttribute::COLOR, 8);
encoder.SetAttributeQuantization(draco::GeometryAttribute::GENERIC, 8); encoder.SetAttributeQuantization(draco::GeometryAttribute::GENERIC, 8);
encoder.SetEncodingMethod(draco::MeshEncoderMethod::MESH_EDGEBREAKER_ENCODING);
draco::EncoderBuffer dracoBuffer; draco::EncoderBuffer dracoBuffer;
draco::Status status = encoder.EncodeMeshToBuffer(*primitive->dracoMesh, &dracoBuffer); draco::Status status = encoder.EncodeMeshToBuffer(*primitive->dracoMesh, &dracoBuffer);