[unity] Fixed ignored SkeletonAnimation looping change when AnimationName is the same. Closes #1396.

This commit is contained in:
Harald Csaszar 2019-09-26 18:43:17 +02:00
parent 570f8df178
commit b1c1dac17a

View File

@ -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)) {