From d2709ea4fda2366eea55d98bc23582c9a2ee32b0 Mon Sep 17 00:00:00 2001 From: yutopp Date: Thu, 17 Jan 2019 19:06:46 +0900 Subject: [PATCH] Change a logic to check draco to a way written in the specification --- Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs b/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs index cf7d4a7d3..7c9d2da87 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/ImporterContext.cs @@ -503,14 +503,12 @@ namespace UniGLTF .ContinueWithCoroutine(Scheduler.MainThread, LoadMaterials) .OnExecute(Scheduler.ThreadPool, parent => { - /* - if (GLTF.meshes - .SelectMany(x => x.primitives) - .Any(x => x.extensions.KHR_draco_mesh_compression != null)) + // UniGLTF does not support draco + // https://github.com/KhronosGroup/glTF/blob/master/extensions/2.0/Khronos/KHR_draco_mesh_compression/README.md#conformance + if (GLTF.extensionsRequired.Contains("KHR_draco_mesh_compression")) { throw new UniGLTFNotSupportedException("draco is not supported"); } - */ // meshes var meshImporter = new MeshImporter();