239 Commits

Author SHA1 Message Date
NathanSweet
1b16e521ca [csharp, monogame, xna] Updated copyright info. 2016-06-30 23:49:09 +02:00
John
1c19365325 [csharp][monogame][unity][xna] Updated to 3.3.x (#623)
* [spine-csharp] Ported 3.3 changes of Animation and inner classes. Added MathUtils.Clamp

* [spine-csharp] Ported 3.3 changes of AnimationStateData. Updated .gitignore to exclude .meta files from spine-csharp

* [spine-csharp] Ported 3.3 changes of Bone

* [spine-csharp] Ported 3.3 changes of BoneData

* [spine-csharp] Ported 3.3 changes of Event

* [spine-csharp] Ported 3.3 changes to IKConstraint. Also got rid of the hideous labeled break. Replaced with while and sprinkled continues and break :D

* [spine-csharp] Mario is not good with labeled breaks. Fixed with goto

* [spine-csharp] Ported more 3.3 changes, only SkeletonJson and SkeletonBinary left. Unity runtime also needs updating with new changes

* [spine-csharp] fixed compilation errors initially not reported by Mono CS

* Minor clean up.

Every space has its place.™

* Match csharp 3.3 refactorings.

* [Unity] Minor cleanup in SkeletonBaker.

* Better exception messages.

* Removed extra usings. Matched whitespace style.

* Fixed Bone.cs method PascalCase and xml documentation.

* Fixed Exception ctor arguments.

* Fixed single bone IK mixing.

Matched libgdx commit:
e0ee18a088

* [spine-csharp] Port of 3.3 changes to SkeletonJson, incomplete

* [Unity] Ragdoll: account for shear and new constraints.

* [spine-csharp] Ported 3.3 changes to SkeletonJson

* [spine-csharp] Ported 3.3 changes to SkeletonBinary. Time for testing and debugging

* [spine-csharp] Fixed up XNA runtime

* Added simple example data in new exports/ folder

* [spine-csharp] Fixed bug in Slot construtor, wasn't assigning index. Fixed bug in CurveTimeline, argument guard was wrong. Fixed bugs in SkeletonJson, indexing to get duration of a timeline was wrong. Added simple example to spine-xna for easier debugging

* [spine-csharp] Fixed porting bug in ColorTimeline#apply, indexing was wrong

* [spine-csharp] Fixed SkeletonJson#ReadVertices, calling resize on temp lists was wrong. Updated goblin sample in spine-xna, fixed mesh attachment rendering in spine-xna.

* [spine-xna] Added binary exports, modified XNA game

* [spine-xna] Added tank example

* Some cleanup. Relabeled generic todos.

* Prevent SpineEditorUtilities from orphaning failed instantiations.

* Ignore PathAttachment when checking for required atlas regions.

* [spine-csharp] the great spaces to tabs battle

* [spine-csharp] Fixed inherit deform.

* [spine-csharp] Match Skeleton.java properties and stuff.

* [spine-csharp] Fixed enums, all upper cased now, using Enum.ParseType in case-insensitive mode

* [csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks

* [csharp] Updated README.md

* [xna] [monogame] [unity] Updated README.md

* Revert "[csharp] Ported 206e7f983c4df4d27fee6cac05d152eb2295c8b0 to csharp runtime. Fixes attachment keys on different tracks"

This reverts commit 175216868dd00b4ae31cc717022242308c150f6a.

* [csharp] Fix to AttachmentTimeline#apply, fix for the fix for the fix for the revert for the fix

* [csharp] Matched and fixed more comments, summaries, exception messages and formatting.

* [csharp] Fix deformed weighted vertices condition + match libgdx closer.

* [csharp] Use internal ExposedList array for critical methods.

* [csharp] SkeletonJson and SkeletonBinary minor formatting and fixes.

* [unity] Match changes and fixes in spine-csharp 3.3 + better editor messages.

* [unity] Updated sample scenes and files.

* [csharp] Some formatting got left behind.

* [unity] New readme links + Removed redundant info.

* [exports] Remove dummy project.
2016-06-30 04:29:33 +08:00
NathanSweet
e834982b49 Updated READMEs for v3.3 support. 2016-06-20 19:26:05 +02:00
John
2a6e2b8dfc Add missing setup value for TransformConstraint. 2016-06-07 11:12:27 +08:00
John
89fa5bd6eb Fix default bone shear. 2016-06-02 23:14:03 +08:00
John
f1406e2f85 Update spine-csharp to v3.2 (shearing) (#562)
* spine-csharp updated to 3.2.00.

* Some cleanup, catchup and fixes.

* Mix transform constraint scale and shear offsets.

* Update readmes.

* Clean up.

* Formatting.

* Fixed single bone IK with nonuniform scale. Improved two bone IK.
2016-06-01 02:25:30 +02:00
NathanSweet
8d7f761311 spine-libgdx updated to 3.2.00.
* Added transform constraint rotate, scale, and shear offsets and mixes.
* Added TransformConstraintTimeline.
* Added bone shearing.
* Added ShearTimeline.
* Changed Skeleton#updateCache.
* Changed JSON and binary formats. Some binary format fields and enums were rearranged for consistency -- sorry, but it's better for the long term. Docs for both are up to date.
http://esotericsoftware.com/spine-json-format
http://esotericsoftware.com/spine-binary-format
2016-04-26 22:51:04 +02:00
NathanSweet
1410f0e16f Clean up. 2016-04-15 17:40:48 +02:00
NathanSweet
108dd3dd97 Linked meshes also share edges and image size. 2016-04-15 12:21:45 +02:00
NathanSweet
2c0dea8f87 Fixed reading draw order timeline in binary format. 2016-04-14 13:40:39 +02:00
NathanSweet
1fe73b0f53 Updated readmes. 2016-04-13 21:17:33 +02:00
NathanSweet
7823833bb4 Minor clean up. 2016-04-13 21:14:59 +02:00
John
ba5e4073c3 Updated spine-csharp to 3.1.05: linked meshes. (#543)
* Updated spine-csharp to 3.1.00: linked meshes.

* Updated SkeletonBinary.cs for 3.1.05

based on:
3a06b829cc
8c55aa1f62

* Fixed skeleton flip when rotation and scale are disabled.

Based on: b22669711d

* Fixed IK when the parent has nonuniform scale and the child Y != 0.

Based on: bf902936aa

* Removed redundant locals.
2016-04-13 17:10:20 +02:00
NathanSweet
4f3ccc2c51 List the supported editor version on each runtime README.
closes #526
2016-04-03 19:10:47 +02:00
NathanSweet
6c353c1a38 Fixed worldToLocal.
closes #544
2016-04-03 18:30:35 +02:00
John
27bab7bb95 Don't mix from uninitialized slot vertices.
One less and more correct check.
2016-03-29 07:26:57 +08:00
John
17ba6e2354 Don't mix from uninitialized slot vertices. 2016-03-29 05:03:43 +08:00
John
4b23116dff Use struct for Skin.cs
https://github.com/EsotericSoftware/spine-runtimes/issues/460
2016-03-11 06:59:25 +08:00
John
2a244bbbe0 Explicit AnimationStateData key in C#.
From user issue: http://esotericsoftware.com/forum/Performance-issue-of-KeyValuePair-5966
2016-03-11 06:54:15 +08:00
NathanSweet
c5bdb62386 Moved SharpJson into Json. Added license header. 2016-02-27 02:13:22 +01:00
NathanSweet
f9d3988ee5 Fixed single bone IK with skeleton flipping. 2016-02-27 02:13:05 +01:00
pharan
2945eedad9 Changed bone sorting so transform behavior is consistent when IK and transform constraints are mixed. 2016-02-25 15:57:27 +08:00
NathanSweet
d93e1507fc Fixed disabling scale/rotation.
closes #525
2016-02-22 10:18:16 +01:00
pharan
f018d2451a Fixed transform constraints. 2016-02-18 12:21:58 +08:00
NathanSweet
3a7a4a642b Fixed transform constraints. 2016-02-18 05:15:18 +01:00
Pavel Platto
0038b0e935 Make Json.Deserialize thread-safe in spine-csharp 2016-02-17 17:02:24 +02:00
pharan
ce12d34891 Fixed SkeletonJson.cs directives and scale references. 2016-02-17 15:38:45 +08:00
NathanSweet
0f723b9fa7 A few fixes and minor improvements. 2016-02-17 03:52:22 +01:00
NathanSweet
821928fb89 Removed time parameter. 2016-02-17 02:44:33 +01:00
John
23900a33c0 Merge pull request #520 from EsotericSoftware/pharan-patch-1
[C#] Internal code should access internal fields.
2016-02-17 08:44:08 +08:00
NathanSweet
10c941a28b Missed porting.
#519
2016-02-17 01:04:43 +01:00
John
d019981303 Internal code should access internal fields. 2016-02-16 19:04:45 +08:00
NathanSweet
c0f8e40858 Fixed reading translateMix from JSON. 2016-02-16 00:04:26 +01:00
NathanSweet
b72d915036 Better yDown support. 2016-02-15 23:56:00 +01:00
NathanSweet
03606717a7 Fixed whitespace.
C# has such bad tools. :(
2016-02-15 21:03:49 +01:00
NathanSweet
337e6c284f Added SharpJson to project. 2016-02-15 16:38:31 +01:00
NathanSweet
f44d6260ab Merge remote-tracking branch 'origin/master' 2016-02-15 14:06:36 +01:00
NathanSweet
ebc5ff0072 Set time field. 2016-02-15 14:03:51 +01:00
pharan
777fb110e8 spine-csharp now uses SharpJson 2016-02-15 09:55:00 +08:00
pharan
4c69881c2f MathUtils.cs compiler constants instead of static fields. 2016-02-15 09:54:26 +08:00
NathanSweet
ac2721c553 Fixed flipping to use world axes, fixed disable inherit scale and rotation when flipped. 2016-02-15 02:43:04 +01:00
NathanSweet
08b74f5b18 Updated spine-csharp to Spine v3. 2016-02-14 22:51:18 +01:00
NathanSweet
075e5f2246 Couldn't upgrade this project, not sure why it's needed? 2016-02-14 22:50:01 +01:00
NathanSweet
318b9939e6 Made consistent when slot vertices and attachment time are reset.
setAttachment resets vertices and attachment time only if the attachment actually changed. setToSetupPose always resets vertices and attachment time.

http://esotericsoftware.com/forum/Spine-API-SetToSetupPose-FFD-Questions-2102?p=26119#p26119
2016-01-15 07:02:09 +01:00
John
727c242e6f [Unity] Fix for Unity UWP/Windows Phone
https://github.com/EsotericSoftware/spine-runtimes/issues/495
2015-12-30 14:59:23 +08:00
John
81eb9c49b4 [Unity] Fix for Unity UWP/Windows Phone 2015-12-30 14:58:09 +08:00
John
8006c7b4b9 [Unity] Fix for Unity UWP/Windows Phone
https://github.com/EsotericSoftware/spine-runtimes/issues/495
2015-12-30 14:55:05 +08:00
John
dd28645a0b [Unity] Fix for Unity UWP/Windows Phone
https://github.com/EsotericSoftware/spine-runtimes/issues/495

http://de.esotericsoftware.com/forum/Can-t-build-a-Windows-Store-App-with-Unity-Errors-4354
2015-12-30 14:44:33 +08:00
John
e37a9dd16b [C#] Have world transforms ready on instatiation
This also allows [Spine-Unity] SkeletonRenderer to work by itself: https://github.com/EsotericSoftware/spine-runtimes/issues/453
2015-12-29 04:33:03 +08:00
John
9a7aeb1ae0 Merge pull request #344 from pharan/patch-1
[C#] Optional fix for firing events when mixing


This allows previous animations to fire its events during mixing/crossfading.

To maintain consistency across runtimes, this fix code is commented out.
To use it, remove the old line and uncomment the fix line.
2015-12-25 23:15:27 +08:00