diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-08-07 14:20:02 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-08-07 14:20:02 +0000 |
| commit | 9bf886f095ec2bd6af5bebc658430fe4de3cbf63 (patch) | |
| tree | 1febcd9ced3a1c1a50dd630a22cce268a8cba215 /src/perspective3d.cpp | |
| parent | Compute the correct visible front corner (also for 'upended' boxes) and set t... (diff) | |
| download | inkscape-9bf886f095ec2bd6af5bebc658430fe4de3cbf63.tar.gz inkscape-9bf886f095ec2bd6af5bebc658430fe4de3cbf63.zip | |
Fix behaviour of toggle buttons (for VP states) in 3D box toolbar; reshape boxes when state of a VP changes
(bzr r3412)
Diffstat (limited to 'src/perspective3d.cpp')
| -rw-r--r-- | src/perspective3d.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/perspective3d.cpp b/src/perspective3d.cpp index 421725bdb..c7592a06f 100644 --- a/src/perspective3d.cpp +++ b/src/perspective3d.cpp @@ -321,6 +321,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 () { for (GSList *i = this->boxes; i != NULL; i = i->next) { |
