Преглед изворни кода

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;