701 Commits

Author SHA1 Message Date
Mario Zechner
b33e66e1d2 Merge branch '4.0' into 4.1-beta 2022-03-11 18:07:46 +01:00
Mario Zechner
f4a92fbfae [c] Fixes #2041, adds sanitizer support via Cmake flag SPINE_SANITIZER=TRUE 2022-03-11 18:07:30 +01:00
Mario Zechner
9319029763 [c] Sequence support in SkeletonBinary and SkeletonJson. 2022-02-10 16:00:53 +01:00
Mario Zechner
0d237b1529 [c] Port sequence timeline loading to SkeletonBinary
Deform timeline parsing not working.
2022-02-04 13:21:44 +01:00
Mario Zechner
ffb9e75b09 [c][cpp] Port of shortestRotation, see #2027 2022-02-02 12:02:43 +01:00
Mario Zechner
504f52a5a7 Merge branch '4.0' into 4.1-beta
# Conflicts:
#	spine-as3/spine-as3/src/spine/animation/ScaleTimeline.as
#	spine-as3/spine-as3/src/spine/animation/ScaleXTimeline.as
#	spine-as3/spine-as3/src/spine/animation/ScaleYTimeline.as
#	spine-lua/spine-lua/Animation.lua
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/package.json
2022-01-27 18:42:14 +01:00
Mario Zechner
c8fe2c884b [c] Ported scale mixing fix, see #2028. 2022-01-26 20:36:10 +01:00
Mario Zechner
d7bb172c95 Fix fomatting script, apply formatting. 2022-01-20 19:49:10 +01:00
Mario Zechner
6ccf584466 Merge branch '4.0' into 4.1-beta 2022-01-19 11:31:28 +01:00
Mario Zechner
bf260a43ec [c] Fixes #2017, use REALLOC macro instead of realloc. 2022-01-19 11:31:03 +01:00
Mario Zechner
5a541597cc [c] Fix compilation errors due to new type hierarchy. 2022-01-12 09:05:34 +01:00
Mario Zechner
65a12c6f8e [c] More porting of sequences. 2021-12-29 22:26:34 +01:00
Mario Zechner
83c0b0c559 [c] Initial port of Sequence timelines
Everything is broken, WIP to transfer to other machine.
2021-12-28 16:01:26 +01:00
Mario Zechner
e87757ef57 Update version strings to 4.1(.xx) 2021-10-14 00:47:13 +02:00
Nathan Sweet
96a998b82d Spine Runtimes License Agreement update (September 24, 2021). 2021-09-24 18:18:19 -10:00
Nathan Sweet
77774608bf [as3][c][cpp][csharp][libgdx][lua][ts] Fixed updateAppliedTransform for the root bone. 2021-09-16 17:00:10 -06:00
Nathan Sweet
f4021177f9 [as3][c][cpp][csharp][libgdx][lua][ts] Don't treat scale sign as an instant transition when applying a timeline additively. 2021-09-15 00:28:43 -06:00
Mario Zechner
31c2f4aedd [c][cpp] Fix compilation errors. See commit dc9a6eb, see #1951 2021-09-13 23:36:48 +02:00
Nathan Sweet
dc9a6ebe7f [as3][c][cpp][csharp][libgdx][lua][ts] Fixed loading transform constraint timelines from JSON data.
* Fixed SkeletonJson not allocating enough memory for curves (maximum of 6 curves/key, not 4). Fixes email: FMfcgzGkbDfvckWcFxWlsTWzFhMXsTDw
* Removed SkeletonData and Skeleton methods: findBoneIndex, findSlotIndex. Bones and slots have an index field that should be used instead.
* Removed SkeletonData and Skeleton methods: find*ConstraintIndex. Only SkeletonJson needed these, they don't need to be in the public API.
* Used a local for number of frames where it was used many times.
2021-09-12 18:15:19 -06:00
Nathan Sweet
efac69ee7a Fixed scale of constrained bones with transform constraint relative + local. 2021-09-06 19:54:17 -06:00
Mario Zechner
0bf2fb6059 Revert "Formatting errors to test GH Action."
This reverts commit 1800b235458b331b87bed27ce5aee55575163fc7.
2021-08-18 21:21:09 +02:00
Mario Zechner
1800b23545 Formatting errors to test GH Action. 2021-08-18 21:15:37 +02:00
Mario Zechner
3f6bc07bad Move all formatter related files to formatters/ 2021-08-16 16:38:16 +02:00
badlogic
ac86ef9ce8 [c] Replace direct assignment of slot->attachment with call to spSlot_setAttachment, fixes #1927 2021-08-05 17:10:26 +02:00
badlogic
8057c114db [c][cpp] Fix multi-page atlas parsing, closes #1935 2021-08-05 16:19:06 +02:00
Nathan Sweet
8d99332f7f [all] Fixed AnimationState#addEmptyAnimation when the track is empty.
http://esotericsoftware.com/forum/Spine-4-change-in-behavior-with-EmptyAnimation-16176
2021-07-28 20:32:53 -04:00
badlogic
620b926dd5 [c] Fix Atlas line length calculation, closes #1925 2021-07-23 16:05:23 +02:00
Nathan Sweet
0b01c0036e [as3][c][cpp][csharp][libgdx][ts] Fixed SkeletonBinary scale not being applied to some timelines.
closes #1928
2021-07-20 13:31:31 -04:00
badlogic
e842e67d19 [c][cpp] CMake clean-up, update to C++11. 2021-07-01 11:04:12 +02:00
badlogic
87658c7d31 [c][cpp] Spotless formatter 2021-07-01 10:40:18 +02:00
badlogic
30702a3bff [c][cpp] Fix AnimationState::clearNext() 2021-06-21 17:45:34 +02:00
Mario Zechner
de697385fc [runtimes] Fix up README.md files using correct editor version. 2021-06-14 15:31:17 +02:00
Mario Zechner
3af35555a9 [c][cpp] Expose colors on bones, attachments. Closes #1823 2021-06-14 14:50:07 +02:00
badlogic
07d3633881 [c][cpp] Port IK constraint changes
See

33bce01fee
f9862b10b3
2021-06-09 14:44:24 +02:00
Mario Zechner
35650a6bb2 [c] port of constraint application oder, see #1896 2021-06-07 16:57:16 +02:00
Mario Zechner
4715608108 [c][cpp] Fix remaining 4.0 porting bugs, apply formatter. 2021-06-07 16:13:25 +02:00
Nathan Sweet
a5be08a62a More clean up. 2021-06-05 21:16:36 -04:00
Nathan Sweet
700d2897a8 Various clean up. 2021-06-04 22:16:54 -04:00
Nathan Sweet
a8b79a66e1 [c, cpp] Renamed frameIndex parameters.
frame: frame number, 0 to frameCount - 1.
frameIndex: index into frames[].
2021-06-04 10:50:26 -04:00
Nathan Sweet
7bc5d995a3 [c] Fixed some incorrect constants. 2021-06-04 10:40:04 -04:00
Nathan Sweet
7df74c2fa4 Various fixes, clean up.
* Added missing CurveTimeline#shrink calls. c and cpp got BOZO comments until the method is added.
* SkeletonJson#readCurve clean up.
* ts, use shorthand for null checks.
* csharp, don't use unnecessary hasNext local.
2021-06-03 21:42:35 -04:00
Nathan Sweet
e40bc3c151 [c] Fixed wrong curve index. 2021-06-03 21:24:36 -04:00
Nathan Sweet
7aa940a961 Fixes for reading mix X/Y. 2021-06-03 15:33:48 -04:00
Mario Zechner
69f0873122 [c] Timeline type and debugging prints. 2021-06-02 09:28:24 +02:00
Mario Zechner
a71d73928d [c] Fix frame and curve array initialization in timelines, add debugging methods. 2021-05-31 15:58:18 +02:00
Nathan Sweet
6dfae6df3c Missing port: Fixed AnimationState crash when the number of timelines changes during a mix.
Ref impl commit: b99df7286aa933411f90eda6dbdeffd936058ae4
2021-05-31 01:26:41 -04:00
badlogic
e6a14ff532 [c] 4.0 porting, complete but with bugs. 2021-05-26 15:17:20 +02:00
badlogic
090f317602 [c] 4.0 porting, skeleton binary complete. 2021-05-20 11:30:34 +02:00
badlogic
7a7a69592a [c] 4.0 porting, skeleton binary. 2021-05-19 12:31:40 +02:00
badlogic
5411717c1a [c] 4.0 porting, texture atlas parsing and key value storage in regions. 2021-05-12 15:18:39 +02:00