Code

Don't show boxes as everted (i.e., always show the same sides) during initial drag...
[inkscape.git] / src / box3d.h
index d34ac1ae042629e29e2efe3491eaec942c811440..d6243d5e06c40303b0632e5fdd1c08105c633a51 100644 (file)
@@ -43,6 +43,8 @@ struct SPBox3D : public SPGroup {
     Proj::Pt3 save_corner0;
     Proj::Pt3 save_corner7;
 
+    Box3D::Axis swapped; // to indicate which coordinates are swapped during dragging
+
     gint my_counter; // for debugging only
 };
 
@@ -70,6 +72,8 @@ int box3d_VP_lies_in_PL_sector (SPBox3D const *box, Proj::Axis vpdir, int id1, i
 /* ensures that the coordinates of corner0 and corner7 are in the correct order (to prevent everted boxes) */
 void box3d_relabel_corners(SPBox3D *box);
 
+void box3d_check_for_swapped_coords(SPBox3D *box);
+
 void box3d_add_to_selection(SPBox3D *box);
 void box3d_remove_from_selection(SPBox3D *box);
 void box3d_mark_transformed(SPBox3D *box);