From f336b9f6f58ba59aed9ba97048607a59d533f6e1 Mon Sep 17 00:00:00 2001 From: Kleber Lopes da Silva Date: Wed, 18 Oct 2017 01:38:48 -0200 Subject: [PATCH] [unity] Fix SpineAttachment skinField param. * Fixed: skinField property from SpineAttachment attribute * [unity] Fix SpineAttachment skinField param. --- .../Assets/spine-unity/Editor/SpineAttributeDrawers.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spine-unity/Assets/spine-unity/Editor/SpineAttributeDrawers.cs b/spine-unity/Assets/spine-unity/Editor/SpineAttributeDrawers.cs index 505a31ae0..fd8c13d94 100644 --- a/spine-unity/Assets/spine-unity/Editor/SpineAttributeDrawers.cs +++ b/spine-unity/Assets/spine-unity/Editor/SpineAttributeDrawers.cs @@ -375,12 +375,10 @@ namespace Spine.Unity.Editor { ISkeletonComponent skeletonComponent = GetTargetSkeletonComponent(property); var validSkins = new List(); - - 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;