From 731a203a18d1028cefeea2bb19aa727149e0a4c4 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sat, 1 Sep 2007 23:36:14 +0000 Subject: Decent support for setting the direction of infinite VPs via the toolbar and partial fix for wrong undo behaviour (?) (bzr r3659) --- src/perspective3d.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/perspective3d.cpp') 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(); } } -- cgit v1.2.3