From e83d495fdc423809e4bbe164f74dedc49e0c53e0 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Fri, 22 Feb 2019 23:02:14 -0800 Subject: [PATCH] Fix Draco. How long was this broken? --- src/gltf/Raw2Gltf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gltf/Raw2Gltf.cpp b/src/gltf/Raw2Gltf.cpp index eac53e4..01b4afe 100644 --- a/src/gltf/Raw2Gltf.cpp +++ b/src/gltf/Raw2Gltf.cpp @@ -436,6 +436,7 @@ ModelData* Raw2Gltf( // initialize Draco mesh with vertex index information auto dracoMesh(std::make_shared()); dracoMesh->SetNumFaces(static_cast(triangleCount)); + dracoMesh->set_num_points(surfaceModel.GetVertexCount()); for (uint32_t ii = 0; ii < triangleCount; ii++) { draco::Mesh::Face face;