diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-09-01 23:36:14 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-09-01 23:36:14 +0000 |
| commit | 731a203a18d1028cefeea2bb19aa727149e0a4c4 (patch) | |
| tree | 1d5dce4db226b7c905c99fe684e30c2f5842ce67 /src/perspective3d.cpp | |
| parent | relabel widgets for (hopefully) clarity (diff) | |
| download | inkscape-731a203a18d1028cefeea2bb19aa727149e0a4c4.tar.gz inkscape-731a203a18d1028cefeea2bb19aa727149e0a4c4.zip | |
Decent support for setting the direction of infinite VPs via the toolbar and partial fix for wrong undo behaviour (?)
(bzr r3659)
Diffstat (limited to 'src/perspective3d.cpp')
| -rw-r--r-- | src/perspective3d.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/perspective3d.cpp b/src/perspective3d.cpp index 9321af356..db4f564c7 100644 --- a/src/perspective3d.cpp +++ b/src/perspective3d.cpp @@ -196,6 +196,11 @@ Perspective3D::set_infinite_direction (Box3D::Axis axis, NR::Point const dir) } get_vanishing_point (axis)->set_infinite_direction (dir); + for (GSList *i = this->boxes; i != NULL; i = i->next) { + sp_3dbox_reshape_after_VP_rotation (SP_3DBOX (i->data), axis); + sp_3dbox_set_z_orders_later_on (SP_3DBOX (i->data)); + } + update_box_reprs(); } void @@ -207,11 +212,6 @@ Perspective3D::rotate (Box3D::Axis const axis, double const angle) a += angle; a *= M_PI/180; this->set_infinite_direction (axis, NR::Point (cos (a), sin (a))); - for (GSList *i = this->boxes; i != NULL; i = i->next) { - sp_3dbox_reshape_after_VP_rotation (SP_3DBOX (i->data), axis); - sp_3dbox_set_z_orders_later_on (SP_3DBOX (i->data)); - } - update_box_reprs(); } } |
