mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fix SpineAttachment skinField param.
* Fixed: skinField property from SpineAttachment attribute * [unity] Fix SpineAttachment skinField param.
This commit is contained in:
parent
4f119dbdc6
commit
f336b9f6f5
@ -375,12 +375,10 @@ namespace Spine.Unity.Editor {
|
|||||||
ISkeletonComponent skeletonComponent = GetTargetSkeletonComponent(property);
|
ISkeletonComponent skeletonComponent = GetTargetSkeletonComponent(property);
|
||||||
var validSkins = new List<Skin>();
|
var validSkins = new List<Skin>();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (skeletonComponent != null && targetAttribute.currentSkinOnly) {
|
if (skeletonComponent != null && targetAttribute.currentSkinOnly) {
|
||||||
Skin currentSkin = null;
|
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);
|
if (skinProperty != null) currentSkin = skeletonComponent.Skeleton.Data.FindSkin(skinProperty.stringValue);
|
||||||
|
|
||||||
currentSkin = currentSkin ?? skeletonComponent.Skeleton.Skin;
|
currentSkin = currentSkin ?? skeletonComponent.Skeleton.Skin;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user