Skip to content

Commit

Permalink
Fix PoseSubgraph connect() signature order (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrinktofit committed Aug 31, 2021
1 parent 4391043 commit 6a6fb50
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cocos/core/animation/newgen-anim/pose-graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,19 @@ export class PoseSubgraph extends GraphNode implements OwnedBy<Layer | PoseSubgr
* @param from Source node.
* @param to Target node.
* @param condition The transition condition.
* @throws `InvalidTransitionError` if:
* - the target node is entry or any, or
* - the source node is exit.
*/
public connect (from: GraphNode, to: GraphNode, condition?: Condition): TransitionView
public connect (from: PoseNode, to: GraphNode, condition?: Condition): PoseTransitionView;

/**
* Connect two nodes.
* @param from Source node.
* @param to Target node.
* @param condition The transition condition.
* @throws `InvalidTransitionError` if:
* - the target node is entry or any, or
* - the source node is exit.
*/
public connect (from: PoseNode, to: GraphNode, condition?: Condition): PoseTransitionView;
public connect (from: GraphNode, to: GraphNode, condition?: Condition): TransitionView;

public connect (from: GraphNode, to: GraphNode, condition?: Condition): TransitionView {
assertsOwnedBy(from, this);
Expand Down

0 comments on commit 6a6fb50

Please sign in to comment.