We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21b1c6 commit d80ca1dCopy full SHA for d80ca1d
Sources/GateEngine/ECS/3D Specific/Rig/Rig3DComponent.swift
@@ -75,8 +75,15 @@
75
}
76
77
public var animationIsFinished: Bool {
78
- guard skeleton.isReady && activeAnimation?.isReady == true else {return false}
79
- return activeAnimation?.isFinished ?? true
+ guard skeleton.isReady else {return false}
+ if let activeAnimation {
80
+ if activeAnimation.isReady == false {
81
+ return false
82
+ }
83
+ return activeAnimation.isFinished
84
85
+ // When no animation is active, always be finished
86
+ return true
87
88
89
public var animationRepeats: Bool {
0 commit comments