浏览代码

Manually merged PR #929

badlogic 8 年之前
父节点
当前提交
e3825e60c4

+ 1 - 0
CHANGELOG.md

@@ -25,6 +25,7 @@
  * Added support for clipping.
  * Added support for rotated regions in texture atlas loaded via StarlingAtlasAttachmentLoader.
  * Added support for vertex effects. See `RaptorExample.as`
+ * Added 'getTexture()' method to 'StarlingTextureAtlasAttachmentLoader'
 
 ## C
  * **Breaking changes**

二进制
spine-starling/spine-starling-example/lib/spine-starling.swc


+ 4 - 0
spine-starling/spine-starling/src/spine/starling/StarlingAtlasAttachmentLoader.as

@@ -56,6 +56,10 @@ package spine.starling {
 
 			Bone.yDown = true;
 		}
+		
+		protected function getTexture(path:String):Texture {
+            return atlas.getTexture(path);
+        }
 
 		public function newRegionAttachment(skin : Skin, name : String, path : String) : RegionAttachment {
 			var texture : Texture = atlas.getTexture(path);