diff --git a/src/draco/unity/draco_unity_enc_plugin.cc b/src/draco/unity/draco_unity_enc_plugin.cc index d4c282d3..b0b8b4a2 100644 --- a/src/draco/unity/draco_unity_enc_plugin.cc +++ b/src/draco/unity/draco_unity_enc_plugin.cc @@ -60,6 +60,8 @@ namespace draco { if (preserveTriangleOrder) { dracoEncoder.SetEncodingMethod(draco::MESH_SEQUENTIAL_ENCODING); + } else { + dracoEncoder.SetEncodingMethod(draco::MESH_EDGEBREAKER_ENCODING); } auto encoderStatus = dracoEncoder.EncodeMeshToBuffer(encoder->mesh, &encoder->encoderBuffer);