Skip to content

Commit

Permalink
fix: flash out animations always starting from max instead of current…
Browse files Browse the repository at this point in the history
… visibility value

closes #900
  • Loading branch information
tomasklaen committed May 6, 2024
1 parent 7f03046 commit 4c64fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uosc/elements/Element.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Element:init(id, props)
local function getTo() return self.proximity end
local function onTweenEnd() self.forced_visibility = nil end
if self.enabled then
self:tween_property('forced_visibility', 1, getTo, onTweenEnd)
self:tween_property('forced_visibility', self:get_visibility(), getTo, onTweenEnd)
else
onTweenEnd()
end
Expand Down

0 comments on commit 4c64fe9

Please sign in to comment.