Code

Fix behaviour of toggle buttons (for VP states) in 3D box toolbar; reshape boxes...
[inkscape.git] / src / perspective3d.cpp
index 421725bdbd40018f6fd25506f773c9ee1ea5b6d7..c7592a06f0702e4749cdcbe981473bf6414cafcb 100644 (file)
@@ -320,6 +320,16 @@ Perspective3D::reshape_boxes (Box3D::Axis axes)
     }
 }
 
+void
+Perspective3D::toggle_boxes (Box3D::Axis axis)
+{
+    get_vanishing_point (axis)->toggle_parallel();
+    for (GSList *i = this->boxes; i != NULL; i = i->next) {
+        sp_3dbox_reshape_after_VP_toggling (SP_3DBOX (i->data), axis);
+    }
+    update_box_reprs();
+}
+
 void
 Perspective3D::update_box_reprs ()
 {