mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 23:05:01 +08:00
[unity] BoundingBoxFollower Add Bone Follower button was always disabled. Also calling BoundingBoxFollower.Initialize() explicitly in editor code now (might resolve some problems with recent Unity versions). Closes #1717.
This commit is contained in:
parent
981a3015fa
commit
a062dd7b5a
@ -160,6 +160,8 @@ namespace Spine.Unity.Editor {
|
||||
|
||||
}
|
||||
|
||||
if (follower.Slot == null)
|
||||
follower.Initialize(false);
|
||||
bool hasBoneFollower = follower.GetComponent<BoneFollower>() != null;
|
||||
if (!hasBoneFollower) {
|
||||
bool buttonDisabled = follower.Slot == null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user