libraries/globals/animation.lua:41 -- self.animationPool:SetCustomFactoryBehavior(function(animationTimeline)
animationTimeline:SetHandler("OnStop", function(timeline, completedPlaying)
if completedPlaying and timeline:IsPlayingBackward() then
local control = timeline:GetFirstAnimation():GetAnimatedControl()
self.controlToAnimationTimeline[control] = nil
local poolKey = self.animationTimelineToPoolKey[timeline]
self.animationPool:ReleaseObject(poolKey)
self.animationTimelineToPoolKey[timeline] = nil
end
end)
end)