664 Commits

Author SHA1 Message Date
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
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
Nathan Sweet
d9b882eaef [libgdx] Added TrackEntry#isEmptyAnimation. 2021-08-30 11:36:26 -06:00
Nathan Sweet
e0f5213b70 [libgdx] Improved AnimationState listener event documentation. 2021-08-22 00:03:24 -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
badlogic
2102eafb8e [maven-release-plugin] prepare for next development iteration 2021-08-05 15:51:08 +02:00
badlogic
b3a6b16320 [maven-release-plugin] prepare release spine-libgdx-4.0.18.1 2021-08-05 15:51:05 +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
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
4afc590843 [maven-release-plugin] prepare for next development iteration 2021-07-05 12:48:32 +02:00
badlogic
294e8dc52b [maven-release-plugin] prepare release 4.0.02.1 2021-07-05 12:48:25 +02:00
Nathan Sweet
87b9821e00 [as3][c][cpp][cs][libgdx][lua] Fixed crash with path constraint proportional spacing and tangent rotate modes. 2021-06-30 14:11:26 -04:00
badlogic
c2b1ecb195 [libgdx] Fix line endings, CRLF -> LF 2021-06-30 16:25:32 +02:00
Nathan Sweet
1fbe75cd71 [libgdx] Clear timelines using known size. 2021-06-27 14:59:26 -04:00
Nathan Sweet
d4271ccae9 Fixed AnimationState#clearNext. 2021-06-20 15:53:19 -04:00
Nathan Sweet
9b37c31cae [libgdx] Fixed loading stepped timelines from JSON.
closes #1902
2021-06-14 22:28:09 -04:00
Nathan Sweet
8e21d09c79 [libgdx] Fixed pooled track entries not resetting mixBlend.
closes #1746
2021-06-14 22:18:35 -04:00
badlogic
cf24f5d678 Merge branch '3.8' into 4.0-beta
# Conflicts:
#	spine-libgdx/spine-libgdx/pom.xml
#	spine-libgdx/spine-skeletonviewer/src/com/esotericsoftware/spine/SkeletonViewer.java
#	spine-ts/build/spine-all.js.map
#	spine-ts/build/spine-canvas.js.map
#	spine-ts/build/spine-core.js.map
#	spine-ts/build/spine-player.js.map
#	spine-ts/build/spine-threejs.js.map
#	spine-ts/build/spine-webgl.js.map
2021-06-10 15:10:00 +02:00
badlogic
cb179c73dc [libgdx] Fix signing config for snapshot releases 2021-06-10 15:00:50 +02:00
badlogic
0549aaa541 [maven-release-plugin] prepare for next development iteration 2021-06-10 14:09:01 +02:00
badlogic
139e5dfefd [maven-release-plugin] prepare release spine-libgdx-3.8.99.1 2021-06-10 14:08:55 +02:00
badlogic
3678f3800b [libgdx] More changes to pom.xml 2021-06-10 14:08:30 +02:00
badlogic
337441127f [libgdx] Update plugin versions 2021-06-10 14:05:25 +02:00
badlogic
7cb7a9e64b [libgdx] Use latest libGDX release 2021-06-10 13:54:33 +02:00
badlogic
70167fdb0f [libgdx] Preparation for 3.8.99.1 relesae 2021-06-10 13:49:50 +02:00
Nathan Sweet
0544e14102 [lua] 4.0 porting complete. 2021-06-08 20:25:14 -04:00
Nathan Sweet
d856ece2f2 SkeletonJson clean up. 2021-06-06 23:18:12 -04: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
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
7aa940a961 Fixes for reading mix X/Y. 2021-06-03 15:33:48 -04:00
Nathan Sweet
963da7561e [csharp] Code style update.
* `else` on same line as `if` brace.
* `var` only when the type is shown.
* Removed unnecessarily locals, eg `var events = this.events; var eventsItems = events.Items;`.
* Don't indent `case`.
* ExposedList for EventQueue just so iteration can use array indexing.
* EventQueue, inner members (struct/enum) after methods.
* No braces for single line `if/else/for`.
* Removed comments noting ref impl code, eg `// abc.setSize(xyz);`.
* Removed comments that didn't add to what the code shows, eg `// Pooling`.
* Removed comments not in ref impl about implementation details, eg `// nextTrackLast == -1 ...`.
* Removed commented code we are not using.
* Use local with list.Items when iterating.
2021-05-31 01:26:41 -04:00
Nathan Sweet
a5bbe44477 [libgdx] Clean up. 2021-05-30 13:03:41 -04:00
Nathan Sweet
14b317008b [libgdx] Keep slot deform when changing the attachment if the new attachment is compatible with the deform.
Forum discussion:
http://esotericsoftware.com/forum/Swapping-a-linked-mesh-attachment-causes-a-flicker-15869?p=69490#p69490
2021-05-27 18:37:46 -04:00
Nathan Sweet
1ffab53d97 [libgdx] Javadoc typos. 2021-05-27 13:18:46 -04:00
Nathan Sweet
4f73fbbb39 [libgdx] Fixed applying a constraint reverting changes from other constraints.
Previously: When a bone in the update cache is updated, the local transform is used. This causes any applied transform to be lost, losing the pose from any previously applied constraints.

After this commit: Before processing the update cache, first all bones applied transform is set to the local transform. Next, when a bone in the update cache is updated, the applied transform is used. This keeps the pose from any previously applied constraints. Additionally, instead of using the `appliedValid` flag, the applied transform is always updated after making changes to the world transform.

Forum discussion:
http://esotericsoftware.com/forum/Editor-Parent-constraint-order-breaks-child-constraints-15774?p=69494#p69494
2021-05-25 13:12:55 -04:00
Nathan Sweet
9795ef1a1d [libgdx] Minor clipping improvements.
* Don't return clipping polygon count (editor no longer needs it).
* Avoid returning to the pool, then immediately getting it out again.
2021-04-08 15:40:28 +02:00
Nathan Sweet
33bce01fee [libgdx] Allow uniform for two bone IK. 2021-04-01 00:47:09 +02:00
Nathan Sweet
f9862b10b3 [libgdx] Stretch forces 0 child Y, avoid acos and division. 2021-03-31 18:03:46 +02:00
Nathan Sweet
b05422bf0d [libgdx] Added SkeletonLoader#readSkeletonData(InputStream). 2021-03-13 19:07:48 +01:00
Nathan Sweet
8c4d03c8be Fixed reading path constraint mix timelines in binary data. 2021-03-01 18:18:05 +01:00
Nathan Sweet
12d83571ae [libgdx] Javadoc. 2021-01-05 22:46:00 -08:00
Nathan Sweet
f8d6359b32 [csharp][unity] Updated TextureAtlas parsing for latest format. 2020-12-20 15:26:05 -08:00
Nathan Sweet
08927258cc [libgdx] Use separate color/alpha blend functions to fix non-PMA FBO rendering.
closes #1540
2020-12-08 17:26:31 -08:00
Nathan Sweet
df489b1f4a [libgdx] Fixed an infinite loop with path constraint. 2020-11-23 17:37:48 -08:00
Nathan Sweet
1b4973628c [libgdx] Fixed path constraint spacing for zero length bones. 2020-11-22 20:37:08 -08:00
Nathan Sweet
3cab1615ad [libgdx] Added Skeleton#setColor(float, float, float, float). 2020-11-19 18:12:03 -08:00