mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Merge branch '3.8' into 4.0-beta
This commit is contained in:
commit
ad0cbe21ba
@ -387,6 +387,14 @@ namespace spine {
|
||||
void enableQueue();
|
||||
|
||||
private:
|
||||
static const int Subsequent = 0;
|
||||
static const int First = 1;
|
||||
static const int HoldSubsequent = 2;
|
||||
static const int HoldFirst = 3;
|
||||
static const int HoldMix = 4;
|
||||
|
||||
static const int Setup = 1;
|
||||
static const int Current = 2;
|
||||
|
||||
AnimationStateData* _data;
|
||||
|
||||
|
||||
@ -288,15 +288,6 @@ void EventQueue::drain() {
|
||||
_drainDisabled = false;
|
||||
}
|
||||
|
||||
const int Subsequent = 0;
|
||||
const int First = 1;
|
||||
const int HoldSubsequent = 2;
|
||||
const int HoldFirst = 3;
|
||||
const int HoldMix = 4;
|
||||
|
||||
const int Setup = 1;
|
||||
const int Current = 2;
|
||||
|
||||
AnimationState::AnimationState(AnimationStateData *data) :
|
||||
_data(data),
|
||||
_queue(EventQueue::newEventQueue(*this, _trackEntryPool)),
|
||||
|
||||
@ -90,7 +90,7 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
protected void TrySetAnimation (SkeletonAnimation skeletonAnimation) {
|
||||
if (skeletonAnimation == null) return;
|
||||
if (!skeletonAnimation.valid)
|
||||
if (!skeletonAnimation.valid || skeletonAnimation.AnimationState == null)
|
||||
return;
|
||||
|
||||
TrackEntry current = skeletonAnimation.AnimationState.GetCurrent(0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user