Bläddra i källkod

Merge branch '3.6' of https://github.com/EsotericSoftware/spine-runtimes into 3.6

pharan 8 år sedan
förälder
incheckning
af7471f5f4
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      spine-unity/Assets/spine-unity/Editor/SpineAttributeDrawers.cs

+ 1 - 3
spine-unity/Assets/spine-unity/Editor/SpineAttributeDrawers.cs

@@ -375,12 +375,10 @@ namespace Spine.Unity.Editor {
 			ISkeletonComponent skeletonComponent = GetTargetSkeletonComponent(property);
 			var validSkins = new List<Skin>();
 
-
-
 			if (skeletonComponent != null && targetAttribute.currentSkinOnly) {
 				Skin currentSkin = null;
 
-				var skinProperty = property.FindPropertyRelative(targetAttribute.skinField);
+				var skinProperty = property.FindBaseOrSiblingProperty(targetAttribute.skinField);
 				if (skinProperty != null) currentSkin = skeletonComponent.Skeleton.Data.FindSkin(skinProperty.stringValue);
 
 				currentSkin = currentSkin ?? skeletonComponent.Skeleton.Skin;