mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[libgdx] Fixed missing parenthesis when sorting physics constraints.
This commit is contained in:
parent
ebdc26ce9f
commit
f602177697
@ -339,8 +339,8 @@ public class Skeleton {
|
||||
|
||||
private void sortPhysicsConstraint (PhysicsConstraint constraint) {
|
||||
Bone bone = constraint.bone;
|
||||
constraint.active = bone.active && !constraint.data.skinRequired
|
||||
|| (skin != null && skin.constraints.contains(constraint.data, true));
|
||||
constraint.active = bone.active
|
||||
&& (!constraint.data.skinRequired || (skin != null && skin.constraints.contains(constraint.data, true)));
|
||||
if (!constraint.active) return;
|
||||
|
||||
sortBone(bone);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user