Skip to content

Commit 0d1fa87

Browse files
committed
Fix #1046
1 parent 1ca3459 commit 0d1fa87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/grid/transformed.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function vizgrid!(plot::Viz{<:Tuple{TransformedGrid}}, M::Type{<:𝔼}, pdim::Va
3030

3131
nverts = Makie.@lift length($verts)
3232
nquads = Makie.@lift length($quads)
33-
ncolor = Makie.@lift length($colorant)
33+
ncolor = Makie.@lift $colorant isa AbstractVector ? length($colorant) : 1
3434

3535
dims = Makie.@lift size($tgrid)
3636
texture = if ncolor[] == 1

0 commit comments

Comments
 (0)