Skip to content

Commit

Permalink
[animGraph] Fix github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
EspeuteClement committed Jan 31, 2025
1 parent 7ffd942 commit 8dc0bc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hrt/animgraph/nodes/BlendSpace2D.hx
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,10 @@ class BlendSpace2D extends AnimNode {

var strongestAnim = triangles[currentTriangle][max].animInfo?.anim;
if (prevAnimEventBind != strongestAnim) {
prevAnimEventBind?.onEvent = null;
strongestAnim?.onEvent = animEventHander;
if (prevAnimEventBind != null)
prevAnimEventBind.onEvent = null;
if (strongestAnim != null)
strongestAnim.onEvent = animEventHander;
prevAnimEventBind = strongestAnim;
}

Expand Down

0 comments on commit 8dc0bc8

Please sign in to comment.