Skip to content

Commit

Permalink
revert to include legacy version of updatePlot function to avoid brea…
Browse files Browse the repository at this point in the history
…king changes
  • Loading branch information
andrewwinters5000 committed Apr 8, 2024
1 parent 1b2f813 commit b3a6abc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ext/VizProject.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,17 @@ function plotProject!(proj::Project, plotOptions::Int = 0)
end


# updatePlot!(proj::Project)
# This version replots the figure with the current options. Legacy.
function updatePlot!(proj::Project)
if !isnothing(proj.plt)
proj.plt = Figure(size = (1000, 1000))
plotOptions = proj.plotOptions
plotProject!(proj, plotOptions)
end
end


function updatePlot!(proj::Project, plotOptions::Int)
if !isnothing(proj.plt)
proj.plt = Figure(size = (1000, 1000))
Expand Down
2 changes: 2 additions & 0 deletions test/test_visualization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ using CairoMakie
meshFileFormat = getMeshFileFormat(p_visu)
setFileNames!(p_visu, meshFileFormat)

@test_nowarn updatePlot!(p_visu)

# Create the mesh which contains a plotting update for ISM-V2
@test_nowarn generate_mesh(p_visu)

Expand Down

0 comments on commit b3a6abc

Please sign in to comment.