From 9bf886f095ec2bd6af5bebc658430fe4de3cbf63 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Tue, 7 Aug 2007 14:20:02 +0000 Subject: Fix behaviour of toggle buttons (for VP states) in 3D box toolbar; reshape boxes when state of a VP changes (bzr r3412) --- src/perspective3d.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/perspective3d.cpp') diff --git a/src/perspective3d.cpp b/src/perspective3d.cpp index 421725bdb..c7592a06f 100644 --- a/src/perspective3d.cpp +++ b/src/perspective3d.cpp @@ -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 () { -- cgit v1.2.3