mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
Round UDim offset values (#30)
This commit is contained in:
parent
e1751fb8d0
commit
72e5fbb6fe
1 changed files with 2 additions and 2 deletions
|
|
@ -114,11 +114,11 @@ local vec6_to_type = {
|
|||
end :: Vec6ToType<Color3>,
|
||||
|
||||
UDim = function(v)
|
||||
return UDim.new(v.X, v.Y)
|
||||
return UDim.new(v.X, math.round(v.Y))
|
||||
end :: Vec6ToType<UDim>,
|
||||
|
||||
UDim2 = function(a, b)
|
||||
return UDim2.new(a.X, a.Y, a.Z, b.X)
|
||||
return UDim2.new(a.X, math.round(a.Y), a.Z, math.round(b.X))
|
||||
end :: Vec6ToType<UDim2>,
|
||||
|
||||
Vector2 = function(v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue