mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[unity] Fixed ignored SkeletonAnimation looping change when AnimationName is the same. Closes #1396.
This commit is contained in:
parent
001373c7de
commit
eb086a07e8
@ -96,8 +96,11 @@ namespace Spine.Unity {
|
||||
}
|
||||
}
|
||||
set {
|
||||
if (_animationName == value)
|
||||
return;
|
||||
if (_animationName == value) {
|
||||
TrackEntry entry = state.GetCurrent(0);
|
||||
if (entry != null && entry.loop == loop)
|
||||
return;
|
||||
}
|
||||
_animationName = value;
|
||||
|
||||
if (string.IsNullOrEmpty(value)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user