Skip to content

Commit

Permalink
Fix old API usage for Camera3D
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 authored May 10, 2024
1 parent 111075e commit c7dfadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TrixiMakieExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function iplot(pd::PlotData2DTriangulated;

# On OSX, shift-command-4 for screenshots triggers a constant "up-zoom".
# To avoid this, we remap up-zoom to the right shift button instead.
Makie.cameracontrols(ax.scene).attributes[:up_key][] = Makie.Keyboard.right_shift
Makie.cameracontrols(ax.scene).controls[:up_key][] = Makie.Keyboard.right_shift

# typing this pulls up the figure (similar to display(plot!()) in Plots.jl)
fig
Expand Down

0 comments on commit c7dfadc

Please sign in to comment.