Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
fix reduction error (#672)
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Krumbiegel <[email protected]>
  • Loading branch information
SimonDanisch and jkrumbiegel authored Mar 25, 2021
1 parent a9a2a96 commit 1360934
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layouting/layouting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,11 @@ function preprojected_glyph_arrays(strings::AbstractVector{<:String}, positions:
error("Unknown space $space, only :data or :screen allowed")
end

megapos = reduce(vcat, allpos)
megapos::Vector{Point3f0} = if isempty(allpos)
Point3f0[]
else
reduce(vcat, allpos)
end

atlas = get_texture_atlas()
uv = Vec4f0[]
Expand Down

0 comments on commit 1360934

Please sign in to comment.