From 8e8734dc15e614586f9b4963b69671ce16d5c137 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 30 May 2008 20:36:13 +0000 Subject: LPE STACKING! (many thanks to the french students who made this.) (bzr r5766) --- src/live_effects/lpe-perspective_path.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/live_effects/lpe-perspective_path.cpp') diff --git a/src/live_effects/lpe-perspective_path.cpp b/src/live_effects/lpe-perspective_path.cpp index 57bc458a9..cf6d1cecd 100644 --- a/src/live_effects/lpe-perspective_path.cpp +++ b/src/live_effects/lpe-perspective_path.cpp @@ -59,8 +59,6 @@ LPEPerspectivePath::LPEPerspectivePath(LivePathEffectObject *lpeobject) : Proj::TransfMat3x4 pmat = persp->tmat; pmat.copy_tmat(tmat); - - groupSpecialBehavior = false; } LPEPerspectivePath::~LPEPerspectivePath() @@ -71,14 +69,9 @@ LPEPerspectivePath::~LPEPerspectivePath() void LPEPerspectivePath::doBeforeEffect (SPLPEItem *lpeitem) { - if(SP_IS_GROUP(lpeitem)) - { - groupSpecialBehavior = true; - original_bbox(lpeitem); - } + original_bbox(lpeitem, true); } - Geom::Piecewise > LPEPerspectivePath::doEffect_pwd2 (Geom::Piecewise > const & pwd2_in) { @@ -93,14 +86,9 @@ LPEPerspectivePath::doEffect_pwd2 (Geom::Piecewise > cons D2 > B = make_cuts_independant(path_a_pw); Piecewise preimage[4]; - if(!groupSpecialBehavior) - { - boundingbox_X = bounds_fast(pwd2_in)[0]; - boundingbox_Y = bounds_fast(pwd2_in)[1]; - } - Geom::Point orig = Geom::Point(uses_plane_xy ? boundingbox_X.max() : boundingbox_X.min(), boundingbox_Y.middle()); + //Geom::Point orig = Geom::Point(bounds_X.min(), bounds_Y.middle()); //orig = Geom::Point(orig[X], sp_document_height(inkscape_active_document()) - orig[Y]); -- cgit v1.2.3