From 5c5e14083fab75dc2d441bc70d50a0e44ea017b0 Mon Sep 17 00:00:00 2001 From: Datseris Date: Mon, 4 Apr 2022 15:26:01 +0200 Subject: [PATCH] fix incorrect usage of static preplot. --- Project.toml | 2 +- src/agents/abmplot.jl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index d37fa4cb..e8c4a3ed 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "InteractiveDynamics" uuid = "ec714cd0-5f51-11eb-0b6e-452e7367ff84" repo = "https://github.com/JuliaDynamics/InteractiveDynamics.jl.git" -version = "0.20.2" +version = "0.20.3" [deps] DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" diff --git a/src/agents/abmplot.jl b/src/agents/abmplot.jl index 486dc980..e0763fa5 100644 --- a/src/agents/abmplot.jl +++ b/src/agents/abmplot.jl @@ -237,8 +237,7 @@ function Makie.plot!(abmplot::_ABMPlot) # Static preplot if !isnothing(abmplot.static_preplot![]) - static_plot = abmplot.static_preplot![](abmplot, model) - static_plot.inspectable[] = false + abmplot.static_preplot![](ax, model) end # Dispatch on type of agent positions