Эх сурвалжийг харах

Merge branch '4.0' of https://github.com/esotericsoftware/spine-runtimes into 4.0

Mario Zechner 4 жил өмнө
parent
commit
05b44befcb

+ 2 - 0
CHANGELOG.md

@@ -74,6 +74,7 @@
 * Added proportional spacing mode support for path constraints.
 * Added support for uniform scaling for two bone IK.
 * Fixed applying a constraint reverting changes from other constraints.
+* **Breaking change:** Removed `SkeletonData` and `Skeleton` methods: `FindBoneIndex`, `FindSlotIndex`. Bones and slots have an `Index` field that should be used instead. Be sure to check for e.g. `bone == null` accordingly before accessing `bone.Index`.
 
 ### Unity
 
@@ -180,6 +181,7 @@
 * Added proportional spacing mode support for path constraints.
 * Added support for uniform scaling for two bone IK.
 * Fixed applying a constraint reverting changes from other constraints.
+* **Breaking change:** Removed `SkeletonData` and `Skeleton` methods: `findBoneIndex`, `findSlotIndex`. Bones and slots have an `index` field that should be used instead.
 
 ### libGDX
 * Exposed colors in `SkeletonRendererDebug`.

+ 4 - 1
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/PathConstraintData.java

@@ -168,7 +168,10 @@ public class PathConstraintData extends ConstraintData {
 	 * <p>
 	 * See <a href="http://esotericsoftware.com/spine-path-constraints#Rotate-mode">Rotate mode</a> in the Spine User Guide. */
 	static public enum RotateMode {
-		tangent, chain, chainScale;
+		tangent, chain,
+		/** When chain scale, constrained bones should all have the same parent. That way when the path constraint scales a bone, it
+		 * doesn't affect other constrained bones. */
+		chainScale;
 
 		static public final RotateMode[] values = RotateMode.values();
 	}