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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Nov 15, 2017
1 parent 167afd6 commit 162fc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/visualize/particles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@ function vec2quaternion(rotation::StaticVector{3})
end


vec2quaternion(rotation::VecTypes{Vec4f0}) = rotation
vec2quaternion(rotation::VecTypes) = const_lift(x-> vec2quaternion.(x), rotation)
vec2quaternion(rotation::Signal{<: StaticVector}) = map(vec2quaternion, rotation)
"""
This is the main function to assemble particles with a GLNormalMesh as a primitive
"""
function meshparticle(p, s, data)

rot = get!(data, :rotation, Vec4f0(0, 0, 0, 1))
rot = vec2quaternion(rot)
delete!(data, :rotation)
Expand Down

0 comments on commit 162fc6b

Please sign in to comment.