Skip to content

Commit 50840c9

Browse files
authored
Fix toggle connect in plot_interactive (#291)
1 parent 2e4e656 commit 50840c9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

ext/JutulMakieExt/interactive_3d.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,7 @@ function plot_interactive_impl(grid, states;
568568
kwarg...
569569
)
570570
if !isnothing(edge_color)
571-
eplt = Jutul.plot_mesh_edges!(ax, grid; color = edge_color, edge_arg...)
572-
connect!(eplt.visible, edge_toggle.active)
571+
Jutul.plot_mesh_edges!(ax, grid; color = edge_color, visible = edge_toggle.active, edge_arg...)
573572
end
574573
elseif plot_type == :meshscatter
575574
sz = 0.8.*primitives.sizes

0 commit comments

Comments
 (0)