Skip to content

Commit c84aff4

Browse files
committed
Transform: set more than just the first tag after transform finished.
Old code didn't get updated to work with the new system resulted in only the first tag in the transform getting written.
1 parent b11ab0f commit c84aff4

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/Transform.moon

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Math = require 'a-mo.Math'
33
bit = require 'bit'
44

55
class Transform
6-
@version: 0x010200
6+
@version: 0x010201
77
@version_major: bit.rshift( @version, 16 )
88
@version_minor: bit.band( bit.rshift( @version, 8 ), 0xFF )
99
@version_patch: bit.band( @version, 0xFF )
@@ -98,7 +98,6 @@ class Transform
9898
count
9999

100100
interpolate: ( line, text, index, time ) =>
101-
log.dump time
102101
placeholder = line.tPlaceholder index
103102
@collectPriorState line, text, placeholder
104103

@@ -109,15 +108,15 @@ class Transform
109108
resultString = {}
110109
for tag, endValues in pairs @effectTags
111110
if linearProgress <= 0
112-
return tag\format @priorValues[tag]
111+
table.insert resultString, tag\format @priorValues[tag]
113112
elseif linearProgress >= 1
114-
return tag\format endValues.last
115-
116-
value = @priorValues[tag]
117-
for endValue in *endValues
118-
value = tag\interpolate value, endValue, progress
113+
table.insert resultString, tag\format endValues.last
114+
else
115+
value = @priorValues[tag]
116+
for endValue in *endValues
117+
value = tag\interpolate value, endValue, progress
119118

120-
table.insert resultString, tag\format value
119+
table.insert resultString, tag\format value
121120

122121
return table.concat resultString
123122

versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"src/ShakeShapeHandler.moon": "0x010000",
1111
"src/Statistics.moon": "0x000101",
1212
"src/Tags.moon": "0x010300",
13-
"src/Transform.moon": "0x010200",
13+
"src/Transform.moon": "0x010201",
1414
"src/TrimHandler.moon": "0x010001",
1515
"Aegisub-Motion.moon": "0x010000"
1616
}

0 commit comments

Comments
 (0)