Skip to content

Commit

Permalink
refactor: opt code
Browse files Browse the repository at this point in the history
  • Loading branch information
luzhuang committed Sep 12, 2024
1 parent ce34b21 commit 33c0775
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/src/animation/Animator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1301,8 +1301,10 @@ export class Animator extends Component {

if (parameterValue === true) {
const parameter = this.getParameter(name);
parameter._isTrigger && this._tempTriggeredParametersName.push(name);
pass = true;
if (parameter?._isTrigger) {
this._tempTriggeredParametersName.push(name);
pass = true;
}
}

if (!pass) {
Expand Down

0 comments on commit 33c0775

Please sign in to comment.