From 7fde649d8c53b4bf0bcc914458bbd5b7126fa3ec Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Wed, 1 Oct 2014 17:03:41 +0200 Subject: [PATCH] Added getter for skinName. --- spine-as3/spine-as3/src/spine/Skeleton.as | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spine-as3/spine-as3/src/spine/Skeleton.as b/spine-as3/spine-as3/src/spine/Skeleton.as index 2ed29df15..eba5d3b69 100644 --- a/spine-as3/spine-as3/src/spine/Skeleton.as +++ b/spine-as3/spine-as3/src/spine/Skeleton.as @@ -209,6 +209,11 @@ public class Skeleton { this.skin = skin; } + /** @return May be null. */ + public function get skinName () : String { + return _skin == null ? null : _skin._name; + } + /** Sets the skin used to look up attachments not found in the {@link SkeletonData#getDefaultSkin() default skin}. Attachments * from the new skin are attached if the corresponding attachment from the old skin was attached. If there was no old skin, * each slot's setup mode attachment is attached from the new skin.