diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-07-03 18:11:42 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-07-03 18:11:42 +0000 |
| commit | 1e6f49c3a07f9e1f9ec08e1942dc8115c0165fd7 (patch) | |
| tree | 9ea5c82c074002ee0b24e2d92f426001df9e565e /src/box3d-face.cpp | |
| parent | Use arrays to manage corners and faces of 3D boxes (diff) | |
| download | inkscape-1e6f49c3a07f9e1f9ec08e1942dc8115c0165fd7.tar.gz inkscape-1e6f49c3a07f9e1f9ec08e1942dc8115c0165fd7.zip | |
Swap axis directions Y and Z (for consistency)
(bzr r3167)
Diffstat (limited to 'src/box3d-face.cpp')
| -rw-r--r-- | src/box3d-face.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/box3d-face.cpp b/src/box3d-face.cpp index b3a26b9ca..13e19d769 100644 --- a/src/box3d-face.cpp +++ b/src/box3d-face.cpp @@ -31,12 +31,12 @@ void Box3DFace::set_shape(NR::Point const ul, NR::Point const lr, } else { if (align_along_PL) { Box3D::PerspDir dir3; - if (dir1 == Box3D::X && dir2 == Box3D::Y) dir3 = Box3D::Z; if (dir1 == Box3D::X && dir2 == Box3D::Z) dir3 = Box3D::Y; - if (dir1 == Box3D::Y && dir2 == Box3D::X) dir3 = Box3D::Z; - if (dir1 == Box3D::Y && dir2 == Box3D::Z) dir3 = Box3D::X; + if (dir1 == Box3D::X && dir2 == Box3D::Y) dir3 = Box3D::Z; if (dir1 == Box3D::Z && dir2 == Box3D::X) dir3 = Box3D::Y; if (dir1 == Box3D::Z && dir2 == Box3D::Y) dir3 = Box3D::X; + if (dir1 == Box3D::Y && dir2 == Box3D::X) dir3 = Box3D::Z; + if (dir1 == Box3D::Y && dir2 == Box3D::Z) dir3 = Box3D::X; Box3D::Line line1(*SP3DBoxContext::current_perspective->get_vanishing_point(dir1), lr); Box3D::Line line2(*pt_align, *SP3DBoxContext::current_perspective->get_vanishing_point(dir3)); corners[2] = *line1.intersect(line2); |
