浏览代码

Wrong type for rgba

Hi,

I think you did a typo. From my understanding of the code, the RGBA value should be numbers, not it (as they are in the RegionAttachement class).

Thanks for the tool.
Sebastien Flory 11 年之前
父节点
当前提交
70189a94cb
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      spine-as3/spine-as3/src/spine/Skeleton.as

+ 4 - 4
spine-as3/spine-as3/src/spine/Skeleton.as

@@ -35,10 +35,10 @@ public class Skeleton {
 	internal var _slots:Vector.<Slot>;
 	internal var _drawOrder:Vector.<Slot>;
 	internal var _skin:Skin;
-	public var r:int = 1;
-	public var g:int = 1;
-	public var b:int = 1;
-	public var a:int = 1;
+	public var r:Number = 1;
+	public var g:Number = 1;
+	public var b:Number = 1;
+	public var a:Number = 1;
 	public var time:Number;
 	public var flipX:Boolean;
 	public var flipY:Boolean;