diff --git a/R2API.Animations/Extensions.cs b/R2API.Animations/Extensions.cs index 3eb0ee5b..ba7d0db9 100644 --- a/R2API.Animations/Extensions.cs +++ b/R2API.Animations/Extensions.cs @@ -26,6 +26,8 @@ public static int IndexOf(this IEnumerable values, Func predicate { return i; } + + i++; } return -1; diff --git a/R2API.Animations/README.md b/R2API.Animations/README.md index 43e88bd4..57249bce 100644 --- a/R2API.Animations/README.md +++ b/R2API.Animations/README.md @@ -25,6 +25,9 @@ To create `Modified Controller` use option `Assets/R2API/Animation/Copy Animator After that you add the `AnimatorDiff` to an `AssetBundle` and in code you can create an instance of `AnimatorModifications` with `AnimatorModifications.CreateFromDiff()`. ## Changelog +### '1.2.2' +* Fixed an issue where modifying a layer that has behaviours would result in an error. + ### '1.2.1' * Fixed `AnimatorDiff` incorrectly diffing parameters in the editor. diff --git a/R2API.Animations/thunderstore.toml b/R2API.Animations/thunderstore.toml index be580cea..5446ce60 100644 --- a/R2API.Animations/thunderstore.toml +++ b/R2API.Animations/thunderstore.toml @@ -5,7 +5,7 @@ schemaVersion = "0.0.1" [package] namespace = "RiskofThunder" name = "R2API_Animations" -versionNumber = "1.2.1" +versionNumber = "1.2.2" description = "API for modifying RuntimeAnimatorController" websiteUrl = "https://github.com/risk-of-thunder/R2API" containsNsfwContent = false