Skip to content

Commit

Permalink
fix: incorrect AvatarMask test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunderscore committed Feb 3, 2025
1 parent 95117a0 commit 7fb7aee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions UnitTests~/Animation/AvatarMask/AvatarMaskTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ public void whenAvatarMaskIsPresentOnMergedAnimator_rewritesPathsByPrefix()
Assert.Greater(animRootIndex, parentIndex);
Assert.Greater(bodyIndex, animRootIndex);

// Body is still enabled; the injected parent and parent/anim-root are not
// Body is still enabled; the injected parent is not. anim-root should be enabled, since the test mask has
// the root element enabled.
Assert.IsTrue(state.transformMaskElements[parentIndex].Item2 < 0.5f);
Assert.IsTrue(state.transformMaskElements[animRootIndex].Item2 < 0.5f);
Assert.IsTrue(state.transformMaskElements[animRootIndex].Item2 > 0.5f);
Assert.IsTrue(state.transformMaskElements[bodyIndex].Item2 > 0.5f);

// Original paths are removed
Expand Down

0 comments on commit 7fb7aee

Please sign in to comment.