Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit c9e7beb

Browse files
committed
fix plane translation
1 parent c5937f0 commit c9e7beb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/layouting/transformation.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ function transform!(scene::Transformable, x::Tuple{Symbol, <: Number})
191191
rotate!(scene, Vec3f0(1, 0, 0), 0.5pi)
192192
translate!(scene, 0, dimval, 0)
193193
else #yz plane
194-
q1 = qrotation(Vec3f0(1, 0, 0), -0.5pi)
195-
q2 = qrotation(Vec3f0(0, 0, 1), 0.5pi)
196-
rotate!(scene, q2 * q1)
194+
r1 = qrotation(Vec3f0(0, 1, 0), 0.5pi)
195+
r2 = qrotation(Vec3f0(1, 0, 0), 0.5pi)
196+
rotate!(scene, r2 * r1)
197197
translate!(scene, dimval, 0, 0)
198198
end
199199
scene

0 commit comments

Comments
 (0)