[Spine] Fix "Animation finished" condition (#7464)

This commit is contained in:
D8H
2025-03-10 17:57:27 +01:00
committed by GitHub
parent e9c625abc6
commit 187018cdd3
2 changed files with 38 additions and 53 deletions

View File

@@ -5767,7 +5767,7 @@
"parameters": [
"PausedLabel",
"=",
"\"Paused: \" + RedHero.AnimationTest::AnimationPaused() + \", \" + FemalWitch.AnimationTest::AnimationPaused() + \", \" + Spine.AnimationTest::AnimationPaused()"
"\"Paused: \" + RedHero.AnimationTest::AnimationPaused() + \", \" + Spine.AnimationTest::AnimationPaused() + \", \" + FemalWitch.AnimationTest::AnimationPaused()"
]
},
{
@@ -5777,7 +5777,7 @@
"parameters": [
"EndedLabel",
"=",
"\"Ended: \" + RedHero.AnimationTest::AnimationFinished() + \", \" + FemalWitch.AnimationTest::AnimationFinished() + \", \" + Spine.AnimationTest::AnimationFinished()"
"\"Ended: \" + RedHero.AnimationTest::AnimationFinished() + \", \" + Spine.AnimationTest::AnimationFinished() + \", \" + FemalWitch.AnimationTest::AnimationFinished()"
]
}
]
@@ -18768,6 +18768,20 @@
"name": "AnimationFinished",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"\"false\""
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
@@ -18791,31 +18805,6 @@
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"inverted": true,
"value": "AnimatableCapability::AnimatableBehavior::HasAnimationEnded"
},
"parameters": [
"Object",
"Animatable"
]
}
],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"\"false\""
]
}
]
}
],
"expressionType": {
@@ -18842,6 +18831,20 @@
"name": "AnimationPaused",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"\"false\""
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
@@ -18865,31 +18868,6 @@
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"inverted": true,
"value": "AnimatableCapability::AnimatableBehavior::IsAnimationPaused"
},
"parameters": [
"Object",
"Animatable"
]
}
],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"\"false\""
]
}
]
}
],
"expressionType": {