summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4bb662d)
raw | patch | inline | side by side (parent: 4bb662d)
author | cilix42 <cilix42@users.sourceforge.net> | |
Sat, 19 Jan 2008 02:38:25 +0000 (02:38 +0000) | ||
committer | cilix42 <cilix42@users.sourceforge.net> | |
Sat, 19 Jan 2008 02:38:25 +0000 (02:38 +0000) |
src/box3d.cpp | patch | blob | history |
diff --git a/src/box3d.cpp b/src/box3d.cpp
index 9faf47c7c0d2895f04d9ddc671b3bae700f0f974..72aff25985fcb49d54a502074f6fa6b0225137d1 100644 (file)
--- 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: