mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[Unity] Patched Unity 5.1 problem with compiler directives
This commit is contained in:
parent
1f550ce5af
commit
8e49f78bbc
@ -132,7 +132,7 @@ public static class SkeletonBaker {
|
||||
unusedClipNames.Remove(clip.name);
|
||||
} else {
|
||||
AssetDatabase.AddObjectToAsset(clip, controller);
|
||||
#if UNITY_5_0
|
||||
#if UNITY_5
|
||||
controller.AddMotion(clip);
|
||||
#else
|
||||
UnityEditorInternal.AnimatorController.AddAnimationClipToController(controller, clip);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user