瀏覽代碼

[unity] Fix SpineAttachment skinField param.

* Fixed: skinField property from SpineAttachment attribute
* [unity] Fix SpineAttachment skinField param.
Kleber Lopes da Silva 8 年之前
父節點
當前提交
f336b9f6f5
共有 1 個文件被更改,包括 1 次插入3 次删除
  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;