mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed missing added file changes of preceding commit. See #2965.
This commit is contained in:
parent
9cccd52c2e
commit
afeb48933d
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#define READ_VOLATILE_ONCE
|
#define READ_VOLATILE_ONCE
|
||||||
#if UNITY_2017_3_OR_NEWER
|
#if UNITY_2017_3_OR_NEWER
|
||||||
//#define ENABLE_THREAD_PROFILING
|
#define ENABLE_THREAD_PROFILING
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DONT_WAIT_FOR_ALL_LATEUPDATE_TASKS // enabled improves performance a bit.
|
#define DONT_WAIT_FOR_ALL_LATEUPDATE_TASKS // enabled improves performance a bit.
|
||||||
@ -209,7 +209,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
#if USE_THREADED_ANIMATION_UPDATE
|
#if USE_THREADED_ANIMATION_UPDATE
|
||||||
public void RegisterForUpdate (UpdateTiming updateTiming, SkeletonAnimationBase skeletonAnimation) {
|
public void RegisterForUpdate (UpdateTiming updateTiming, SkeletonAnimationBase skeletonAnimation) {
|
||||||
skeletonAnimation.isUpdatedExternally = true;
|
skeletonAnimation.IsUpdatedExternally = true;
|
||||||
|
|
||||||
var skeletonAnimations = skeletonAnimationsUpdate;
|
var skeletonAnimations = skeletonAnimationsUpdate;
|
||||||
if (updateTiming == UpdateTiming.InFixedUpdate) skeletonAnimations = skeletonAnimationsFixedUpdate;
|
if (updateTiming == UpdateTiming.InFixedUpdate) skeletonAnimations = skeletonAnimationsFixedUpdate;
|
||||||
@ -226,7 +226,7 @@ namespace Spine.Unity {
|
|||||||
else if (updateTiming == UpdateTiming.InLateUpdate) skeletonAnimations = skeletonAnimationsLateUpdate;
|
else if (updateTiming == UpdateTiming.InLateUpdate) skeletonAnimations = skeletonAnimationsLateUpdate;
|
||||||
|
|
||||||
skeletonAnimations.Remove(skeletonAnimation);
|
skeletonAnimations.Remove(skeletonAnimation);
|
||||||
skeletonAnimation.isUpdatedExternally = false;
|
skeletonAnimation.IsUpdatedExternally = false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user