From 5fdcfaca2ea7eed36f9c5672ac4b867ea8fcbbe3 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 15 Mar 2013 02:16:41 +0100 Subject: [PATCH] Added fields to timeline classes, issue #8. --- spine-corona/spine/Animation.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spine-corona/spine/Animation.lua b/spine-corona/spine/Animation.lua index 7897931da1..2b740cd06b 100644 --- a/spine-corona/spine/Animation.lua +++ b/spine-corona/spine/Animation.lua @@ -138,6 +138,7 @@ function Animation.RotateTimeline.new () local self = Animation.CurveTimeline.new() self.frames = {} + self.boneIndex = -1 function self:getDuration () return self.frames[#self.frames - 1] @@ -207,6 +208,7 @@ function Animation.TranslateTimeline.new () local self = Animation.CurveTimeline.new() self.frames = {} + self.boneIndex = -1 function self:getDuration () return self.frames[#self.frames - 2] @@ -297,6 +299,7 @@ function Animation.ColorTimeline.new () local self = Animation.CurveTimeline.new() self.frames = {} + self.slotIndex = -1 function self:getDuration () return self.frames[#self.frames - 4] @@ -360,6 +363,7 @@ function Animation.AttachmentTimeline.new () local self = Animation.CurveTimeline.new() self.frames = {} self.attachmentNames = {} + self.slotName = nil function self:getDuration () return self.frames[#self.frames]