diff --git a/cocos/core/animation/newgen-anim/condition.ts b/cocos/core/animation/newgen-anim/condition.ts index 4af6043bf34..5960fe0a379 100644 --- a/cocos/core/animation/newgen-anim/condition.ts +++ b/cocos/core/animation/newgen-anim/condition.ts @@ -33,7 +33,7 @@ export class BinaryCondition implements Condition { public static readonly Operator = BinaryOperator; @serializable - public operator!: BinaryOperator; + public operator: BinaryOperator = BinaryOperator.EQUAL_TO; @serializable public lhs: BindableNumber = new BindableNumber(); @@ -137,7 +137,7 @@ export class UnaryCondition implements Condition { public static readonly Operator = UnaryOperator; @serializable - public operator!: UnaryOperator; + public operator: UnaryOperator = UnaryOperator.TRUTHY; @serializable public operand = new BindableBoolean(); diff --git a/editor/assets/default_file_content/animgraph b/editor/assets/default_file_content/animgraph index c99273dba7e..fbf62638174 100644 --- a/editor/assets/default_file_content/animgraph +++ b/editor/assets/default_file_content/animgraph @@ -23,10 +23,8 @@ }, { "__type__": "cc.animation.PoseSubgraph", - "_bindings": {}, "name": "", - "onEnter": null, - "onExit": null, + "_components": [], "_nodes": [ { "__id__": 3 @@ -51,23 +49,14 @@ }, { "__type__": "cc.animation.GraphNode", - "_bindings": {}, - "name": "Entry", - "onEnter": null, - "onExit": null + "name": "Entry" }, { "__type__": "cc.animation.GraphNode", - "_bindings": {}, - "name": "Exit", - "onEnter": null, - "onExit": null + "name": "Exit" }, { "__type__": "cc.animation.GraphNode", - "_bindings": {}, - "name": "Any", - "onEnter": null, - "onExit": null + "name": "Any" } ] \ No newline at end of file