Revert "fix number of parameters passed to self:move_towards"
Apparently the LSP intellisense is wrong on this one, this actually causes an infinite loop
This commit is contained in:
committed by
Adam Harrison
parent
169b8abae5
commit
6bcdaa9d7a
+1
-1
@@ -18,7 +18,7 @@ end
|
||||
|
||||
function View:move_towards(t, k, dest, rate)
|
||||
if type(t) ~= "table" then
|
||||
return self:move_towards(t, k, dest, rate)
|
||||
return self:move_towards(self, t, k, dest, rate)
|
||||
end
|
||||
local val = t[k]
|
||||
if not config.transitions or math.abs(val - dest) < 0.5 then
|
||||
|
||||
Reference in New Issue
Block a user