Skip to content

Commit

Permalink
fix Shape constructor for AbstractGeometry
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch authored Oct 10, 2024
1 parent aa79e6f commit 8df4db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/highlevel-api.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ abstract type AbstractLight{PtrType} <: RPRObject{PtrType} end
Default shape constructor which works with every Geometry from the package
GeometryTypes (Meshes and geometry primitives alike).
"""
function Shape(context::Context, meshlike::GeometryBasics.Mesh; kw...)
function Shape(context::Context, meshlike::GeometryBasics.AbstractGeometry; kw...)
m = uv_normal_mesh(meshlike; kw...)
return Shape(context, decompose(Point3f, m), decompose_normals(m), faces(m), decompose_uv(m))
end
Expand Down

0 comments on commit 8df4db3

Please sign in to comment.