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
Harald Csaszar
e7533dff0f
[csharp] Port of commit 14b3170 "Keep slot deform when changing the attachment if the new attachment is compatible with the deform.", see #1896 .
2021-05-28 12:36:13 +02:00
Harald Csaszar
8bced33fc6
[xna] Fixed a compile error in Atlas loading (in a non-Unity #if codebranch).
2021-05-27 19:41:45 +02:00
Harald Csaszar
7b1469c32b
[csharp] Ported commit 4f73fbb, "Fixed applying a constraint reverting changes from other constraints.", see #1896 .
2021-05-27 18:35:52 +02:00
Harald Csaszar
1cf93b7105
[csharp] Minor formatting change.
2021-04-02 08:26:27 +02:00
Harald Csaszar
a6d57eaea2
[csharp] Port of commits f9862b1 and 33bce01. Stretch forces 0 child Y, avoid acos and division. Allow uniform for two bone IK.
2021-04-01 16:48:23 +02:00
Nathan Sweet
8c4d03c8be
Fixed reading path constraint mix timelines in binary data.
2021-03-01 18:18:05 +01:00
badlogic
bcccefddf7
[csharp] Fix parsing of mag filter for atlas pages
2020-12-23 19:28:44 +01:00
Nathan Sweet
3ee27a6b3c
[csharp] Capacity for region fields was low.
2020-12-20 15:37:09 -08:00
Nathan Sweet
f8d6359b32
[csharp][unity] Updated TextureAtlas parsing for latest format.
2020-12-20 15:26:05 -08:00
badlogic
ae6eda01f7
Merge branch '3.8' into 4.0-beta
...
# Conflicts:
# 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
# spine-ts/canvas/example/assets/spineboy-ess.json
# spine-ts/canvas/example/assets/spineboy.png
# spine-ts/player/example/assets/raptor-pma.png
# spine-ts/player/example/assets/raptor-pro.json
# spine-ts/player/example/assets/spineboy-pma.png
# spine-ts/player/example/assets/spineboy-pro.skel
# spine-ts/threejs/example/assets/raptor-pro.json
# spine-ts/threejs/example/assets/raptor.png
# spine-ts/webgl/example/assets/coin-pro.skel
# spine-ts/webgl/example/assets/goblins-pro.skel
# spine-ts/webgl/example/assets/mix-and-match-pma.atlas
# spine-ts/webgl/example/assets/mix-and-match-pma.png
# spine-ts/webgl/example/assets/mix-and-match-pro.skel
# spine-ts/webgl/example/assets/owl-pma.png
# spine-ts/webgl/example/assets/owl-pro.skel
# spine-ts/webgl/example/assets/raptor-pma.png
# spine-ts/webgl/example/assets/raptor-pro.skel
# spine-ts/webgl/example/assets/spineboy-pma.png
# spine-ts/webgl/example/assets/spineboy-pro.skel
# spine-ts/webgl/example/assets/spineboy.png
# spine-ts/webgl/example/assets/stretchyman-pro.skel
# spine-ts/webgl/example/assets/tank-pma.atlas
# spine-ts/webgl/example/assets/tank-pma.png
# spine-ts/webgl/example/assets/tank-pro.skel
# spine-ts/webgl/example/assets/vine-pro.skel
2020-11-27 18:47:44 +01:00
Harald Csaszar
3151c18b6c
[unity] SkeletonRenderer components now provide an additional update mode Only Event Timelines at the Update When Invisible property. Added methods to AnimationState for proper behaviour during transitions. Closes #1815 .
2020-11-27 14:03:41 +01:00
Harald Csaszar
dc8b249999
[csharp] Added getter accessors for Atlas.Pages and Atlas.Regions as they were missing (only enumeration of regions or access by name was possible).
2020-11-26 15:36:30 +01:00
Harald Csaszar
5d64ad3776
[csharp] Port of commits 1b49736 and df489b1. "Fixed path constraint spacing for zero length bones."
2020-11-24 18:00:47 +01:00
Harald Csaszar
7ef2fc96db
[csharp] Porting of commits dbd90ca, da1b280, 10d5a91 and e14db0e (includes 4.0 format changes). Fixed errors in color parsing introduced by previous porting 4.0 commit.
...
* Added separate X and Y for transform constraint translate and scale mix.
* Renamed `xxxMix` to `mixXxx` to avoid names like `scaleXMix`.
* Added separate X and Y sliders for path constraint translate mix.
* Added a proportional spacing mode to path constraints.
* Fixed path constraint when a parent bone of the path is scaled.
2020-11-16 21:01:11 +01:00
Harald Csaszar
407c591a2c
[csharp] Ported commits 549e9ae and 6e709a1, (format changes for 4.0.24-beta) "Added separate keying for translateX/Y, scaleX/Y, shearX/Y, and colorRGB/A.". Updated example skeletons.
2020-11-12 19:34:21 +01:00
Harald Csaszar
c223481255
[csharp][xna] Added missing SkeletonLoader.cs file reference to spine-csharp.csproj project file. Updated example project, minor changes.
2020-11-03 18:25:32 +01:00
Harald Csaszar
abf35ec712
[csharp] Removed no longer existing OrderedDictionary.cs file reference from spine-csharp.csproj project file.
2020-11-03 18:14:44 +01:00
Harald Csaszar
b62c531487
[unity] Now failing more gracefully when loading of binary skeleton data fails. Fixed memory leak when loading incompatible binary skeleton asset. Closes #1799 . See #1497 .
2020-10-28 19:33:13 +01:00
Harald Csaszar
ac542835b1
[csharp] Removed unused using statements which caused problems in some automated test context.
2020-10-23 14:32:40 +02:00
Harald Csaszar
d2529d410b
[csharp] Porting of major 4.0-beta runtime changes. Remaining Unity assets will be updated in separate commit. See #1796 .
2020-10-22 14:44:13 +02:00
badlogic
10ecbcf8f3
Merge branch '3.8' into 4.0-beta
2020-08-13 14:50:18 +02:00
Harald Csaszar
0245a83a07
[csharp] Port of commit 8290353. Fix for hold previous on 3+ animations causing dipping. See #1738 .
2020-08-13 12:57:52 +02:00
Nathan Sweet
33e2aea7ff
Merge branch '3.8' into 4.0-beta
2020-08-10 23:53:10 +02:00
Harald Csaszar
7ecc3b6f95
[unity] Reload during Play mode now copies registered event subscribers from before reload. Closes #1704 .
2020-06-24 16:08:02 +02:00
Harald Csaszar
5b65f3f155
[csharp] Avoiding reallocations in Animation ctor by adding all HashSet entries at once. Closes #1709 .
2020-06-24 11:46:07 +02:00
Harald Csaszar
a7e2c9d52a
[csharp] SkeletonBinary: Optimization of ReadFloat and ReadInt performance, overall ~10% performance gain. Closes #1698 .
2020-06-12 11:37:37 +02:00
badlogic
691767ca1f
Merge branch '3.8' into 3.9-beta
2020-06-03 17:44:21 +02:00
Harald Csaszar
85dd60bf57
[csharp] port of bugfix commit 5cab7e9: Fixed 1-bone IK for transform mode noRotationOrReflection when skeleton scale is applied.
2020-06-03 16:36:50 +02:00
Harald Csaszar
69f78b03e1
Merge branch '3.8' into 3.9-beta
2020-05-20 16:48:55 +02:00
Harald Csaszar
0357dd5ffa
[csharp] Port of commit d7203ee. Improved fix for TransformMode.noRotationOrReflection with skeleton scale. See #1668 .
2020-05-20 16:19:27 +02:00
badlogic
0bcd19ef55
Merge branch '3.8' into 3.9-beta
2020-05-06 19:47:25 +02:00
Harald Csaszar
c73f8c1f42
[csharp] Ported automated test set 'AnimationStateTests' to csharp and Unity.
2020-05-06 16:03:04 +02:00
Nathan Sweet
79d2dbfa5f
Merge branch '3.8' into 3.9-beta
2020-05-05 15:34:13 +02:00
Harald Csaszar
00173b4c60
[csharp] Port of commit de203d5: Fixed TransformMode.noRotationOrReflection applying skeleton scale twice. See #1668 .
2020-05-05 15:16:47 +02:00
Harald Csaszar
37d569414d
[csharp] Minor cleanup: removed unused variable, added null tests to legacy SpriteAttacher class.
2020-04-29 16:08:29 +02:00
Harald Csaszar
a0c0db0f5a
[csharp] Fixed ColorTimeline and TwoColorTimeline result colors not being clamped. Closes #1664 .
2020-04-24 16:56:53 +02:00
Nathan Sweet
b0407a850c
Merge branch '3.8' into 3.9-beta
2020-04-19 16:46:41 +02:00
Harald Csaszar
6c6c25d5d5
[csharp] Port of commit 30801657: Fixed attachments not being reset when an entry is mixed out. Removed LAST computation.
2020-04-14 20:02:54 +02:00
badlogic
d885ae45a2
Merge branch '3.8' into 3.9-beta
2020-04-13 10:29:36 +02:00
Harald Csaszar
39387b1015
[csharp] Port of commits dd1b3aaa and b566bfb0. Improved AnimationState deform mixing while attachment timelines mix out. See #1653 .
2020-04-06 21:27:54 +02:00
Harald Csaszar
66da4e4282
Merge branch '3.8' into 3.9-beta
2020-01-24 13:59:33 +01:00
Harald Csaszar
d252df7ece
[unity] Fixed some compiler warnings when building for platforms instead of editor. Closes #1604 .
2020-01-24 13:55:45 +01:00
Harald Csaszar
1185c62ea3
Merge branch '3.8' into 3.9-beta
2020-01-24 13:11:26 +01:00
Harald Csaszar
e62c42c041
[csharp] Fixed precision problems when inherit rotation is disabled and parent rotated by disabling sin/cos/atan2 look up table based implementation. Define can manually be enabled in code in case anyone really receives any measuarable performance impact (which I did not). Closes #1606 .
2020-01-24 12:56:23 +01:00
Mario Zechner
f28e83539f
Merge branch '3.8' into 3.9-beta
2019-12-22 18:09:35 +01:00
Mario Zechner
89da80d25f
[csharp] Fixed errors in IKConstraint.cs.
2019-12-22 18:09:02 +01:00
badlogic
934bec56b7
Merge branch '3.8' into 3.9-beta
2019-12-20 12:27:35 +01:00