From 48aec5bfe56904d37ecf6b3abebd6474d7017bd3 Mon Sep 17 00:00:00 2001 From: amamagi Date: Mon, 6 Jun 2022 16:03:15 +0900 Subject: [PATCH] fix ArgumentOutOfRangeException --- .../FastSpringBone/System/FastSpringBoneBufferCombiner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneBufferCombiner.cs b/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneBufferCombiner.cs index 23361739a..b1b513c69 100644 --- a/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneBufferCombiner.cs +++ b/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneBufferCombiner.cs @@ -77,7 +77,7 @@ namespace UniVRM10.FastSpringBones.System for (var i = 0; i < _batchedBuffers.Length; ++i) { var length = _batchedBufferLogicSizes[i]; - if (!_batchedBuffers[i].IsDisposed) + if (!_batchedBuffers[i].IsDisposed && length > 0) { NativeArray.Copy(_logics, logicsIndex, _batchedBuffers[i].Logics, 0, length); }