Skip to content

Commit

Permalink
fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ffreyer committed Jul 13, 2023
1 parent 0c950ad commit 417d111
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/camera/projection_math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ function _space_to_space_matrix(cam::Camera, input::Symbol, output::Symbol)
# identities
if input in (:data, :transformed, :world) && output in (:data, :transformed, :world)
return Mat4f(I)
elseif input == output
return Mat4f(I)

# direct conversions (no calculations)
elseif input === :world && output === :eye
Expand Down

0 comments on commit 417d111

Please sign in to comment.