Skip to content

Commit

Permalink
[ts] Fix parenthesis in sortPhysicsConstraint check
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Dec 1, 2023
1 parent 7bda386 commit f384795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-ts/spine-core/src/Skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export class Skeleton {

sortPhysicsConstraint (constraint: PhysicsConstraint) {
const bone = constraint.bone;
constraint.active = bone.active && !constraint.data.skinRequired || (this.skin != null && Utils.contains(this.skin.constraints, constraint.data, true));
constraint.active = bone.active && (!constraint.data.skinRequired || (this.skin != null && Utils.contains(this.skin.constraints, constraint.data, true)));
if (!constraint.active) return;

this.sortBone(bone);
Expand Down

0 comments on commit f384795

Please sign in to comment.