fix number of parameters passed to self:move_towards
self:move_towards(self) causes self to be passed twice, ignoring rate
This commit is contained in:
parent
1b0a2bc1aa
commit
050f131261
|
@ -18,7 +18,7 @@ end
|
|||
|
||||
function View:move_towards(t, k, dest, rate)
|
||||
if type(t) ~= "table" then
|
||||
return self:move_towards(self, t, k, dest, rate)
|
||||
return self:move_towards(t, k, dest, rate)
|
||||
end
|
||||
local val = t[k]
|
||||
if not config.transitions or math.abs(val - dest) < 0.5 then
|
||||
|
|
Loading…
Reference in New Issue