Преглед на файлове

[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.

Harald Csaszar преди 5 години
родител
ревизия
a062dd7b5a
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      spine-unity/Assets/Spine/Editor/spine-unity/Editor/Components/BoundingBoxFollowerInspector.cs

+ 2 - 0
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<BoneFollower>() != null;
 			bool hasBoneFollower = follower.GetComponent<BoneFollower>() != null;
 			if (!hasBoneFollower) {
 			if (!hasBoneFollower) {
 				bool buttonDisabled = follower.Slot == null;
 				bool buttonDisabled = follower.Slot == null;