X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Flive_effects%2Flpe-perspective_path.cpp;h=9e7b5d8ea799d0ef5031a8c890919de90bd19987;hb=e9c4a66f3db12ac811f42b73493c1c88460f0de3;hp=57bc458a945da28f879206e0b0b566866c170199;hpb=5209a05743e62584a7ec6afe050ffb0223f899f8;p=inkscape.git diff --git a/src/live_effects/lpe-perspective_path.cpp b/src/live_effects/lpe-perspective_path.cpp index 57bc458a9..9e7b5d8ea 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]); @@ -140,7 +128,7 @@ LPEPerspectivePath::doEffect_pwd2 (Geom::Piecewise > cons + preimage[2] * tmat[j][2] + tmat[j][3]; } - D2 > result(divide(res[0],res[2], 3), + D2 > result(divide(res[0],res[2], 3), divide(res[1],res[2], 3)); Piecewise > output = sectionize(result);