From a062dd7b5ab918b61ee7ab60eab0a152ccc8de4f Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 6 Jul 2020 20:06:15 +0200 Subject: [PATCH] [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. --- .../Editor/Components/BoundingBoxFollowerInspector.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/BoundingBoxFollowerInspector.cs b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/BoundingBoxFollowerInspector.cs index 294882945..7a0e87cf2 100644 --- a/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/BoundingBoxFollowerInspector.cs +++ b/spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/BoundingBoxFollowerInspector.cs @@ -160,6 +160,8 @@ namespace Spine.Unity.Editor { } + if (follower.Slot == null) + follower.Initialize(false); bool hasBoneFollower = follower.GetComponent() != null; if (!hasBoneFollower) { bool buttonDisabled = follower.Slot == null;