Merge pull request #2240 from johanbluecreek/2239-fixing-cached-inline-animations

animation.jl: using randstring() to generate unique tmp names (fix: 2239)
This commit is contained in:
Daniel Schwabeneder
2019-11-06 16:27:37 +01:00
committed by GitHub
+3 -3
View File
@@ -21,9 +21,9 @@ function frame(anim::Animation, plt::P=current()) where P<:AbstractPlot
push!(anim.frames, filename)
end
giffn() = (isijulia() ? "tmp.gif" : tempname()*".gif")
movfn() = (isijulia() ? "tmp.mov" : tempname()*".mov")
mp4fn() = (isijulia() ? "tmp.mp4" : tempname()*".mp4")
giffn() = (isijulia() ? "tmp_"*randstring()*".gif" : tempname()*".gif")
movfn() = (isijulia() ? "tmp_"*randstring()*".mov" : tempname()*".mov")
mp4fn() = (isijulia() ? "tmp_"*randstring()*".mp4" : tempname()*".mp4")
mutable struct FrameIterator
itr