mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[Unity] Now really fixed SkeletonRootMotion out of bounds access when selecting non-default Root Motion Bone with a TransformConstraint. See #2110.
This commit is contained in:
parent
2ef38e4f01
commit
696c723013
@ -443,7 +443,7 @@ namespace Spine.Unity {
|
||||
int GetConstraintLastPosIndex (int constraintIndex) {
|
||||
var constraints = skeletonComponent.Skeleton.TransformConstraints;
|
||||
TransformConstraint targetConstraint = constraints.Items[constraintIndex];
|
||||
return constraints.FindIndex(constraint => constraint == targetConstraint);
|
||||
return transformConstraintIndices.FindIndex(addedIndex => addedIndex == constraintIndex);
|
||||
}
|
||||
|
||||
void FindTransformConstraintsAffectingBone () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user