From ac090b4c87b76c1c70ff90921b6ead2dd77d6e0b Mon Sep 17 00:00:00 2001 From: cam Date: Fri, 29 Apr 2022 16:58:13 +1000 Subject: [PATCH] default to edgebreaker encoding --- src/draco/unity/draco_unity_enc_plugin.cc | 2 ++ 1 file changed, 2 insertions(+) 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);