Skip to content

Commit 88659b6

Browse files
authored
revert anim transition change (playcanvas#3447)
1 parent 6d9b030 commit 88659b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/anim/controller/anim-controller.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ class AnimController {
282282

283283
// filter out transitions that don't have their conditions met
284284
transitions = transitions.filter(function (transition) {
285+
// if the transition is moving to the already active state, ignore it
286+
if (transition.to === this.activeStateName) {
287+
return false;
288+
}
285289
// when an exit time is present, we should only exit if it falls within the current frame delta time
286290
if (transition.hasExitTime) {
287291
let progressBefore = this._getActiveStateProgressForTime(this._timeInStateBefore);

0 commit comments

Comments
 (0)