730 Commits

Author SHA1 Message Date
Luke Ingram
a554d4f1b0 [c] Fixes and closes #2990
Verified that this change is correct using the latest versions of
spine-c and spine-sfml
2025-12-02 22:25:27 -04:00
Luke Ingram
d567a19101 [c] Resolves broken CI.
Correctly uses clang-format 13.0.1.
2025-09-24 14:29:48 -04:00
Luke Ingram
e90eefc2c4 [c] Fixes formatting for SkeletonJson.c 2025-09-24 11:27:56 -04:00
Luke Ingram
249df20753 [c] Corrects RGBA2 to RGB2 2025-09-23 16:30:25 -04:00
Jan Niklas Hasse
c18fce4000 Fix type for first parameter of spRGBA2Timeline_setFrame 2025-08-28 17:13:27 +02:00
荧之空
8ddb2d8d0c
Fix infinite loop when reading json inherit timeline. (#2901) 2025-08-03 20:38:23 +02:00
Harald Csaszar
cd726af62b More URLs in license files updated from http to https. 2025-08-01 17:27:53 +02:00
Mario Zechner
3e0471787a [c] Closes #2879, wrong timeline type instantiated in SkeletonJson.c. 2025-07-07 11:40:41 +02:00
Mario Zechner
225df0f6dd [c] fix referenceScale scaling, closes #2864 2025-07-04 11:18:28 +02:00
Mario Zechner
97d49b37b7 License header update 2025-05-26 13:24:06 +02:00
Mario Zechner
c9aca368d6 [ts] Port of #2837 2025-05-07 13:17:43 +02:00
Mario Zechner
3f440bfc4a [c] Port of #2837 2025-05-07 13:11:49 +02:00
Luke Ingram
23233222f9
[c][cpp] Port of commit f1e0f0f (#2807)
* [c][cpp] Port of commit f1e0f0f: Fixed animation not being mixed out in some cases. #2786

* [c][cpp] Format.

---------

Co-authored-by: Davide Tantillo <iamdjj@gmail.com>
2025-04-09 15:13:39 +02:00
Mario Zechner
b491d8ba4d [cpp] Formatting 2025-04-08 13:52:01 +02:00
Jan Niklas Hasse
8bd5cf2e80
Fix warning -Wimplicit-fallthrough (#2771) 2025-04-08 11:58:03 +02:00
Byeong Gwan
4071565a9c
Update SkeletonBinary.c (#2790)
remove making extra copy of cString which cause the existing cString to be leak, and can not be disposed later,
2025-04-08 11:47:32 +02:00
Byeong Gwan
f93466522b
[c] fix wrong TwoColorAnimation parsing in Json (#2797) 2025-04-08 11:45:46 +02:00
Mario Zechner
c879d7a01c [c] Closes #2765, dispose skeleton data after debug output. 2025-02-26 09:31:56 +01:00
Jan Niklas Hasse
b9abc0c5b9
Fix warning: suggest parentheses around comparison in operand of ‘!=’ (#2721)
spine-c/spine-c/src/spine/Bone.c: In function ‘spBone_updateWorldTransformWith’:
spine-c/spine-c/src/spine/Bone.c:169:64: warning: suggest parentheses around comparison in operand of ‘!=’ [-Wparentheses]
  169 |                                 (pa * pd - pb * pc < 0) != (sx < 0 != sy < 0))
      |                                                             ~~~^~~
spine-c/spine-c/src/spine/Bone.c: In function ‘spBone_updateAppliedTransform’:
spine-c/spine-c/src/spine/Bone.c:284:76: warning: suggest parentheses around comparison in operand of ‘!=’ [-Wparentheses]
  284 |                                         pid < 0 != (self->skeleton->scaleX < 0 != (self->skeleton->scaleY * yDownScale) < 0))
      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~^~~
spine-c/spine-c/src/spine/Bone.c:284:45: warning: suggest parentheses around comparison in operand of ‘!=’ [-Wparentheses]
  284 |                                         pid < 0 != (self->skeleton->scaleX < 0 != (self->skeleton->scaleY * yDownScale) < 0))
      |                                         ~~~~^~~
2025-02-11 14:16:20 +01:00
Luke Ingram
eca4b9e4c1 [c][cpp] Apply skeleton.scaleX/scaleY to wind and gravity. See #2729.
Tested using the spine-sdl runtime and cloud-pot example for both spine-c and spine-cpp.

spine-c's PhysicsConstraint.c has the gravity inverted as it will need to be inverted if the runtime is y-down rather than y-up.
If the runtime is y-up, remove the negative sign and parentheses from self->gravity in line 143.
2025-02-10 09:47:32 -04:00
Mario Zechner
140335636c [c] Port of commit 8d058fb: Improved AnimationState behavior when paused. See #2705 2024-12-09 15:00:59 +01:00
Mario Zechner
e327e9beb5 [c] Port of commit 9d49999: Changed SequenceTimeline to match AttachmentTimeline behavior. 2024-11-15 15:34:59 +01:00
Mario Zechner
6063071809 [c] Fix incorrect != in spBone_parentToWorld 2024-10-15 14:57:07 +02:00
Mario Zechner
f1956d9496 Formatting. 2024-08-19 14:01:33 +02:00
Mario Zechner
e0796bf543 [c][cpp] Port: Fixed mixing out inherit timelines to the setup pose. See #2590 2024-08-19 11:14:37 +02:00
Mario Zechner
1d0b33fb69 Formatting 2024-07-24 14:37:16 +02:00
Mario Zechner
83ac01e76c [c] Port: Scale physics constraint limits with skeleton scale. See #2576 2024-07-24 14:36:41 +02:00
Mario Zechner
70af9d8159 [sfml] Refactor CMake build 2024-06-30 21:03:37 +02:00
Mario Zechner
35d76de559 [c][cpp] Fix formatting 2024-06-28 15:38:51 +02:00
Mario Zechner
ccac475c81 [c][cpp] Closes #2551, fix inherit transform timelines 2024-06-13 18:02:39 +02:00
Mario Zechner
f2d1a2104d [c][cpp] Port: Added TrackEntry#isNextReady() #2547 2024-06-11 14:15:34 +02:00
Mario Zechner
ac4ff96915 [c] Ported clipping fixes for colinear points (a0caef6 and 932c33a). See #2546. 2024-06-11 13:45:02 +02:00
Mario Zechner
e99899e819 [c][cpp] Port 687260a384df3461f72738d08be85993fb83ec70 2024-05-15 13:57:39 +02:00
Mario Zechner
0a828099e9 Formatting 2024-05-03 12:47:24 +02:00
Mario Zechner
04c132f4af [c] Closes #2509, SP_INHERIT_NOSCALE was incorrectly implemented 2024-05-02 16:01:04 +02:00
Dmitro Sechin
f67807f1e7
[spine-c] Fix crashes in skins or animations error handling (#2491)
* Fix android-specific rotation issue. bone->arotation == NaN, in some specific cases during update bones, cause squared value can been very smoll but still negative anyway and create NaN value

* Fix crash at spSkeletonData_dispose() while handling problems in skeleton in SkeletonBinary/SkeletonJson.
Use increase counts instead directly put counts value for avoid problems at early dispose vectors

* additional commit for prev revision
2024-04-30 10:45:53 +02:00
Mario Zechner
d0da762dc6 Formatting 2024-04-27 11:37:40 +02:00
Mario Zechner
3d31acdc5b [c] Fix errors due to Defold's compiler flags 2024-04-27 11:13:10 +02:00
Mario Zechner
de6b411007 Formatting 2024-04-16 17:21:36 +02:00
Mario Zechner
7e1d5e5273 [c][cpp] Update docs of spPhysics enum 2024-04-16 16:25:43 +02:00
Mario Zechner
072c2c0965 Update README.mds, preprare spine-flutter for publication 2024-04-16 15:33:55 +02:00
Mario Zechner
9fbd84344e [c] Finished 4.2 port 2024-04-16 15:15:14 +02:00
Mario Zechner
cbf150b653 [c] More 4.2 porting, SkeletonBinary, untested, probably broken 2024-04-16 13:48:27 +02:00
Mario Zechner
2d940b4156 [c] More 4.2 porting, SkeletonJson, SFML physics examples 2024-04-16 10:50:07 +02:00
Mario Zechner
f7f4d5cbe7 [c] More 4.2 porting, only loaders left. 2024-04-15 21:41:48 +02:00
Mario Zechner
430758eb9b [c] More 4.2 porting, remove incorrect/unnecessary const qualifiers 2024-04-15 15:32:25 +02:00
Mario Zechner
3938424f26 [c] 4.2 porting, removal of const qualifiers from fields. 2024-04-10 15:57:10 +02:00
Dmitriy Sechin
0ffc316793
Fix android-specific rotation issue. bone->arotation == NaN, in some specific cases during update bones, cause squared value can been very smoll but still negative anyway and create NaN value (#2459) 2024-03-06 03:29:25 +01:00
Mario Zechner
d03f535ed8 [cpp] Formatting 2024-01-16 12:42:22 +01:00
Mario Zechner
8c79c7c1de [c][cpp] Fix all warnings on Clang, more physics constraints porting 2024-01-03 12:52:10 +01:00