From 7cc661b670acb8c6ebba5dd7453e8dd154ca1989 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 15 Oct 2020 13:39:16 +0900 Subject: [PATCH] remove unnecessary ARRAY_BUFFER --- Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs b/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs index 93f05c48f..73050b397 100644 --- a/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs +++ b/Assets/VRM/UniGLTF/Scripts/IO/MeshExporter.cs @@ -306,7 +306,7 @@ namespace UniGLTF blendShapePositionAccessorIndex = gltf.ExtendSparseBufferAndGetAccessorIndex(bufferIndex, accessorCount, blendShapeVertices, sparseIndices, sparseIndicesViewIndex, - glBufferTarget.ARRAY_BUFFER); + glBufferTarget.NONE); } if (useNormal) @@ -315,7 +315,7 @@ namespace UniGLTF blendShapeNormalAccessorIndex = gltf.ExtendSparseBufferAndGetAccessorIndex(bufferIndex, accessorCount, blendShapeNormals, sparseIndices, sparseIndicesViewIndex, - glBufferTarget.ARRAY_BUFFER); + glBufferTarget.NONE); } if (useTangent) @@ -323,7 +323,7 @@ namespace UniGLTF blendShapeTangents = sparseIndices.Select(x => blendShapeTangents[x].ReverseZ()).ToArray(); blendShapeTangentAccessorIndex = gltf.ExtendSparseBufferAndGetAccessorIndex(bufferIndex, accessorCount, blendShapeTangents, sparseIndices, sparseIndicesViewIndex, - glBufferTarget.ARRAY_BUFFER); + glBufferTarget.NONE); } } else