Merge pull request #2605 from ousttrue/fix/spring10_reconstruct_index

fix logicsIndex in ReconstructIfDirty
This commit is contained in:
ousttrue 2025-03-11 15:00:07 +09:00 committed by GitHub
commit 71b6b2a41b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,11 +52,6 @@ namespace UniGLTF.SpringBoneJobs
var logicsIndex = 0;
foreach (var buffer in _buffers)
{
if (_request.Any(x => !x.isAdd && x.buffer == buffer))
{
// 削除するので skip
continue;
}
buffer.BackupCurrentTails(combined.CurrentTails, combined.NextTails, logicsIndex);
logicsIndex += buffer.Logics.Length;
}
@ -68,7 +63,6 @@ namespace UniGLTF.SpringBoneJobs
var (isAdd, buffer) = _request.Dequeue();
if (isAdd)
{
// 速度 0 にする
_buffers.AddLast(buffer);
}
else