diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-19 02:38:25 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-19 02:38:25 +0000 |
| commit | 6b361366e7666ea5504d63af493bf1a039f07135 (patch) | |
| tree | c345bfd0cbe3219757d848f7a0294aa62ea6b517 /src/box3d.cpp | |
| parent | add default functions for transforming lpe-pathalongpath.cpp and lpe-skeletal... (diff) | |
| download | inkscape-6b361366e7666ea5504d63af493bf1a039f07135.tar.gz inkscape-6b361366e7666ea5504d63af493bf1a039f07135.zip | |
Fix another small z-order issue for 3D boxes
(bzr r4559)
Diffstat (limited to 'src/box3d.cpp')
| -rw-r--r-- | src/box3d.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/box3d.cpp b/src/box3d.cpp index 9faf47c7c..72aff2598 100644 --- a/src/box3d.cpp +++ b/src/box3d.cpp @@ -996,7 +996,11 @@ box3d_set_new_z_orders_case2 (SPBox3D *box, int z_orders[6], Box3D::Axis central box3d_aux_set_z_orders (z_orders, 3, 1, 5, 2, 4, 0); } else { //g_print ("central axis X (case b3)"); - box3d_aux_set_z_orders (z_orders, 3, 1, 5, 0, 2, 4); + if (insidexy == 0) { + box3d_aux_set_z_orders (z_orders, 3, 5, 1, 0, 2, 4); + } else { + box3d_aux_set_z_orders (z_orders, 3, 1, 5, 0, 2, 4); + } } } } @@ -1012,7 +1016,11 @@ box3d_set_new_z_orders_case2 (SPBox3D *box, int z_orders[6], Box3D::Axis central } } else { //g_print ("central axis Y (case b)"); - box3d_aux_set_z_orders (z_orders, 5, 0, 4, 1, 3, 2); + if (insideyx == 1) { + box3d_aux_set_z_orders (z_orders, 4, 0, 5, 1, 3, 2); + } else { + box3d_aux_set_z_orders (z_orders, 5, 0, 4, 1, 3, 2); + } } break; case Box3D::Z: |
