mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[csharp] Port of commits 855cae69 and f602177. Fixed missing parenthesis when sorting physics constraints.
This commit is contained in:
parent
641168412c
commit
357ad6ffd9
@ -387,11 +387,9 @@ namespace Spine {
|
||||
}
|
||||
|
||||
private void SortPhysicsConstraint (PhysicsConstraint constraint) {
|
||||
constraint.active = !constraint.data.skinRequired || (skin != null && skin.constraints.Contains(constraint.data));
|
||||
if (!constraint.active) return;
|
||||
|
||||
Bone bone = constraint.bone;
|
||||
constraint.active = bone.active;
|
||||
constraint.active = bone.active
|
||||
&& (!constraint.data.skinRequired || (skin != null && skin.constraints.Contains(constraint.data)));
|
||||
if (!constraint.active) return;
|
||||
|
||||
SortBone(bone);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user