[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:
Harald Csaszar 2020-07-06 20:06:15 +02:00
parent 981a3015fa
commit a062dd7b5a

View File

@ -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;