Skip to content

Commit

Permalink
Added fields to timeline classes, issue #8.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Mar 15, 2013
1 parent a1ad55f commit 5fdcfac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spine-corona/spine/Animation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 5fdcfac

Please sign in to comment.