Skip to content

Commit

Permalink
[c] Fix incorrect != in spBone_parentToWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Oct 15, 2024
1 parent 54ecc39 commit bd34b7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine-c/spine-c/src/spine/Bone.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ void spBone_localToWorld(spBone *self, float localX, float localY, float *worldX
}

void spBone_parentToWorld(spBone *self, float localX, float localY, float *worldX, float *worldY) {
if (self->parent != NULL) {
if (self->parent == NULL) {
*worldX = localX;
*worldY = localY;
} else {
Expand Down

0 comments on commit bd34b7a

Please sign in to comment.