Skip to content

Commit

Permalink
fix: Also allow the tweening of UDims, previously this code errored
Browse files Browse the repository at this point in the history
  • Loading branch information
anscg authored Apr 22, 2024
1 parent a496a68 commit ac0d1a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spring/src/Shared/SpringUtils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function SpringUtils.toLinearIfNeeded(value)
elseif typeof(value) == "UDim2" then
return LinearValue.new(UDim2.new, {value.X.Scale, value.X.Offset, value.Y.Scale, value.Y.Offset})
elseif typeof(value) == "UDim" then
return LinearValue.new(UDim.new, {value.scale, value.offset})
return LinearValue.new(UDim.new, {value.Scale, value.Offset})
else
return value
end
Expand All @@ -96,4 +96,4 @@ function SpringUtils.fromLinearIfNeeded(value)
end
end

return SpringUtils
return SpringUtils

0 comments on commit ac0d1a4

Please sign in to comment.