Skip to content
This repository was archived by the owner on Nov 22, 2023. It is now read-only.

Commit 330e00a

Browse files
committed
fix conversion, since !(AbstractMesh <: AbstractGeometry)
1 parent e7ab658 commit 330e00a

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
@@ -48,7 +48,7 @@ function all_attributes{M <: HMesh}(m::M)
4848
end
4949

5050
# Needed to not get into an stack overflow
51-
convert{M <: AbstractMesh}(::Type{M}, mesh::AbstractGeometry) = M(mesh)
51+
convert{M <: AbstractMesh}(::Type{M}, mesh::Union{AbstractGeometry, AbstractMesh}) = M(mesh)
5252
convert(::Type{T}, mesh::T) where T <: AbstractMesh = mesh
5353
#@compat (::Type{HM1}){HM1 <: AbstractMesh}(mesh::HM1) = mesh
5454

0 commit comments

Comments
 (0)