Skip to content

Commit da91216

Browse files
committed
restrict type in meshes to error earlier
1 parent 7fc8760 commit da91216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meshes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Generates a new mesh containing all the data of the individual meshes.
236236
If all meshes are consistent in their use of FaceViews they will be preserved.
237237
Otherwise all of them will be converted with `clear_faceviews(mesh)`.
238238
"""
239-
function Base.merge(meshes::AbstractVector{<:Mesh})
239+
function Base.merge(meshes::AbstractVector{<:Mesh{D}}) where {D}
240240
return if isempty(meshes)
241241
return Mesh(Point3f[], GLTriangleFace[])
242242

0 commit comments

Comments
 (0)