Skip to content

Commit 088bfed

Browse files
authored
Merge pull request #1232 from JuliaGeometry/fix-makie-warnings
Fix Makie warnings
2 parents 44135a2 + 5a3682a commit 088bfed

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CoordRefSystems = "0.18"
3030
DelaunayTriangulation = "1.0"
3131
Distances = "0.10"
3232
LinearAlgebra = "1.9"
33-
Makie = "0.22 - 0.24"
33+
Makie = "0.24"
3434
NearestNeighbors = "0.4"
3535
Random = "1.9"
3636
Rotations = "1.5.1"

ext/grid.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function vizgridfallback!(plot, M, pdim, edim)
8282

8383
mesh = Makie.@lift GB.Mesh($verts, $quads, uv=$uv)
8484

85-
shading = edim == Val(3) ? Makie.FastShading : Makie.NoShading
85+
# enable shading in 3D
86+
shading = edim == Val(3)
8687

8788
Makie.mesh!(plot, mesh, color=texture, shading=shading)
8889

ext/mesh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function vizmesh!(plot, ::Type{<:𝔼}, ::Val{2}, ::Val)
128128
end
129129

130130
# enable shading in 3D
131-
tshading = dim == 3 ? Makie.FastShading : Makie.NoShading
131+
tshading = dim == 3
132132

133133
tcoords, tconnec, tcolors, tshading
134134
end

ext/subdomain.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function vizsubdom!(plot::Viz{<:Tuple{SubCartesianGrid}}, ::Type{<:𝔼}, ::Val,
7575
marker = Makie.Rect{dim}(-1 .* sp, sp)
7676

7777
# enable shading in 3D
78-
shading = dim == 3 ? Makie.FastShading : Makie.NoShading
78+
shading = dim == 3
7979

8080
coords, marker, shading
8181
end

0 commit comments

Comments
 (0)